Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Restricting admin side plug to work only on staff writers
If i want an admin-side plug to work only on staff writers, what do i need to put into the plugin code?
if (@txpinterface==‘admin’) { add_privs(‘my_plugin’, ‘4’); }
doesn’t seem to do it. My publisher account at least is permitted, too. (Didn’t try for 2,3, 5 and 6).
Thanx for any hints.
Last edited by jayrope (2011-07-25 17:43:04)
A hole turned upside down is a dome, when there’s also gravity.
Offline
Re: Restricting admin side plug to work only on staff writers
Rahhhh. Seems like i should have posted this in plugin development. Pardon me!
Last edited by jayrope (2011-07-25 18:05:32)
A hole turned upside down is a dome, when there’s also gravity.
Offline