the view_photos and post_photos permissions are redundant and are now mapped to view_storage and write_storage
This commit is contained in:
@@ -604,7 +604,7 @@ function widget_photo_albums($arr) {
|
||||
if(! $a->profile['profile_uid'])
|
||||
return '';
|
||||
$channelx = channelx_by_n($a->profile['profile_uid']);
|
||||
if((! $channelx) || (! perm_is_allowed($a->profile['profile_uid'], get_observer_hash(), 'view_photos')))
|
||||
if((! $channelx) || (! perm_is_allowed($a->profile['profile_uid'], get_observer_hash(), 'view_storage')))
|
||||
return '';
|
||||
require_once('include/photos.php');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user