diff options
author | Guan Shiliang <phecho@163.com> | 2016-12-12 10:30:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-12 10:30:28 +0800 |
commit | 5964d5cb13a85468800cdb45d5239cffb25b6e43 (patch) | |
tree | 8fc23a38fa7d0668a91e1044736f89f89c5ec49e | |
parent | f83178bef8084bfe57963b1820e73b4a9ab0bab5 (diff) |
Fix issue #2881
The locally uploaded avatar images should be visible in public view
-rw-r--r-- | app/ServiceProvider/AuthenticationProvider.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/ServiceProvider/AuthenticationProvider.php b/app/ServiceProvider/AuthenticationProvider.php index c2dad0e6..a3dc7e1a 100644 --- a/app/ServiceProvider/AuthenticationProvider.php +++ b/app/ServiceProvider/AuthenticationProvider.php @@ -136,7 +136,7 @@ class AuthenticationProvider implements ServiceProviderInterface $acl->add('BoardViewController', 'readonly', Role::APP_PUBLIC); $acl->add('ICalendarController', '*', Role::APP_PUBLIC); $acl->add('FeedController', '*', Role::APP_PUBLIC); - $acl->add('AvatarFileController', 'show', Role::APP_PUBLIC); + $acl->add('AvatarFileController', array('show', 'image'), Role::APP_PUBLIC); $acl->add('ConfigController', '*', Role::APP_ADMIN); $acl->add('TagController', '*', Role::APP_ADMIN); |