silverstripe-kickassets icon indicating copy to clipboard operation
silverstripe-kickassets copied to clipboard

requires full CMS access

Open oetiker opened this issue 8 years ago • 2 comments

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.

oetiker avatar Feb 29 '16 09:02 oetiker

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!

iamyellow avatar May 02 '16 09:05 iamyellow

Thanks @iamyellow that worked for me. I'll try and do a pull request for this

mediabeastnz avatar Jan 19 '17 21:01 mediabeastnz