Skip to content

Commit

Permalink
Stop allowing any CMS user to view all files
Browse files Browse the repository at this point in the history
They can already view files, and this just overrides any specific permissions added to a folder/file.
  • Loading branch information
purplespider authored Oct 6, 2023
1 parent 3366304 commit 3b30b07
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions code/extensions/AllowFileUploads.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ public function canEdit($members = null)
}
}

public function canView($members = null)
{
if (Permission::check('CMS_ACCESS_CMSMain')) {
return true;
}
}
// public function canView($members = null)
// {
// if (Permission::check('CMS_ACCESS_CMSMain')) {
// return true;
// }
// }

public function canDelete($members = null)
{
Expand Down

0 comments on commit 3b30b07

Please sign in to comment.