2011-07-25 17:22:26

jayrope
Plugin Author
lambda
Real name: jane ko
From: Berlin
Known languages: de, en, fr // all frequencies
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

 

2011-07-25 18:05:21

jayrope
Plugin Author
lambda
Real name: jane ko
From: Berlin
Known languages: de, en, fr // all frequencies
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

 

Powered by FluxBB