summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuan Shiliang <phecho@163.com>2016-12-12 10:30:28 +0800
committerGitHub <noreply@github.com>2016-12-12 10:30:28 +0800
commit5964d5cb13a85468800cdb45d5239cffb25b6e43 (patch)
tree8fc23a38fa7d0668a91e1044736f89f89c5ec49e
parentf83178bef8084bfe57963b1820e73b4a9ab0bab5 (diff)
Fix issue #2881
The locally uploaded avatar images should be visible in public view
-rw-r--r--app/ServiceProvider/AuthenticationProvider.php2
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);