Go to main content

Textpattern CMS support 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: 687
Website Mastodon

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

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

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

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

Board footer

Powered by FluxBB