#1 June 16, 2014 5:12pm

jmason03
Member
Registered: January 9, 2014
Posts: 123

Restrict Developer Module Access

We have a user who needs a Developer account but there is one particular module that we would not like her to have access to. I tried going into the users table and setting "moduleID":"p" to "moduleID":"n" under the permissions column but that did not work. I'm just curious if what I want to do is even possible or if once the system sees she is a developer then it doesn't even check the permissions?


Thanks

Offline

#2 June 16, 2014 5:15pm

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 974

Re: Restrict Developer Module Access

Every module permission is ignored for Administrators and Developers (they're automatically publishers). When permissions checks are run it first checks the user level and if it's > 0 it automatically returns "p" for publisher. You'd need to use a custom BigTreeAdmin extension class to overwrite checkAccess with a custom version that takes away this:

if ($this->Level > 0) {
    return true;
}

Offline

#3 June 16, 2014 5:32pm

jmason03
Member
Registered: January 9, 2014
Posts: 123

Re: Restrict Developer Module Access

That worked perfect!

Thanks

Offline

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.