Textpattern Forum

You are not logged in. Register | Login | Help

#1 2011-07-25 17:22:26

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 418
Website

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)


jayrope

Offline

#2 2011-07-25 18:05:21

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 418
Website

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)


jayrope

Offline

Board footer

Powered by FluxBB