Added avatar image upload
This commit is contained in:
@@ -125,6 +125,7 @@ class AuthenticationProvider implements ServiceProviderInterface
|
||||
$acl->add('Board', 'readonly', Role::APP_PUBLIC);
|
||||
$acl->add('Ical', '*', Role::APP_PUBLIC);
|
||||
$acl->add('Feed', '*', Role::APP_PUBLIC);
|
||||
$acl->add('AvatarFile', 'show', Role::APP_PUBLIC);
|
||||
|
||||
$acl->add('Config', '*', Role::APP_ADMIN);
|
||||
$acl->add('Currency', '*', Role::APP_ADMIN);
|
||||
|
||||
@@ -6,6 +6,7 @@ use Pimple\Container;
|
||||
use Pimple\ServiceProviderInterface;
|
||||
use Kanboard\Core\User\Avatar\AvatarManager;
|
||||
use Kanboard\User\Avatar\GravatarProvider;
|
||||
use Kanboard\User\Avatar\AvatarFileProvider;
|
||||
use Kanboard\User\Avatar\LetterAvatarProvider;
|
||||
|
||||
/**
|
||||
@@ -28,6 +29,7 @@ class AvatarProvider implements ServiceProviderInterface
|
||||
$container['avatarManager'] = new AvatarManager;
|
||||
$container['avatarManager']->register(new LetterAvatarProvider($container));
|
||||
$container['avatarManager']->register(new GravatarProvider($container));
|
||||
$container['avatarManager']->register(new AvatarFileProvider($container));
|
||||
return $container;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,6 +24,7 @@ class ClassProvider implements ServiceProviderInterface
|
||||
'Model' => array(
|
||||
'Action',
|
||||
'ActionParameter',
|
||||
'AvatarFile',
|
||||
'Board',
|
||||
'Category',
|
||||
'Color',
|
||||
|
||||
Reference in New Issue
Block a user