silverstripe-kickassets
silverstripe-kickassets copied to clipboard
requires full CMS access
If a user does NOT have 'Access to all CMS sections' enabled in his account but just 'Admin Assets', he does get the kickassets menu item enabled, but when he clicks on it, he just gets another copy of the admin view in the popup window.
true. it seems it doesn't override canAccess
. i managed to solve that just w/ a simple extension:
<?php
class IAYKickAssetsExtension extends LeftAndMainExtension {
public function canAccess() {
return Permission::check('CMS_ACCESS_AssetAdmin');
}
}
hope it helps!
Thanks @iamyellow that worked for me. I'll try and do a pull request for this