inherit
162752
0
Nov 7, 2024 3:58:23 GMT -8
Pebble
Where it all does or doesn't happen!
1,437
January 2011
pebbleleague
|
Post by Pebble on Mar 5, 2013 4:01:26 GMT -8
I've been knocking up a code using a 'thread' key and it appears that there are permissions set as to who can change the actual key data. Is it possible to change these permissions? I've looked around and can't see any reference to this. If not, who actually has permission? only the admin? staff? developers that are allowed to edit the plugin?
example of permission settings from the source code: Highlighted in green.
Admin Account.
proboards.plugin.keys.init(["preds",3]);proboards.plugin.keys.init_permissions(["preds",{3462:[1,1]}]);proboards.plugin.keys.init_values(["preds" etc etc......
Member Account. proboards.plugin.keys.init(["preds",3]);proboards.plugin.keys.init_permissions(["preds",{3462:[1,0]}]);proboards.plugin.keys.init_values(["pre etc etc......
Thanks in advance for any info.
EDIT: Just to make things a little clearer! Member accounts CAN access the data in the key but any actions they make on the thread don't set the changes to the key. The Admin account obviously gets the data from the key and when changes are made to the thread, the new key data is set, unlike the member account.
EDIT2: So it seems that moderators that have access to the admin page get 'permission'. Still stumped a little as to if this is a setting that I'm missing or it's just an automatic 'staff' thing.
|
|
inherit
King Oligochaete
126470
0
Feb 24, 2021 12:23:15 GMT -8
Wormopolis
Stop rating plugins with 1 star that dont deserve it.
20,002
June 2008
tbserialkillers
Wormo's Mini-Profile
|
Post by Wormopolis on Mar 11, 2013 3:08:50 GMT -8
when you make the plugin you can choose what kind of key access there is. make a interface tab with key settings on it and you can see who is allowed to make changes to data.
what you cant do however is restrict the admin from changing those permissions. even if you set it to default "everyone" has access to the key, the admin installing the plugin has the right to restrict it to members or just staff
|
|
inherit
162752
0
Nov 7, 2024 3:58:23 GMT -8
Pebble
Where it all does or doesn't happen!
1,437
January 2011
pebbleleague
|
Post by Pebble on Mar 11, 2013 3:20:18 GMT -8
Cheers Wormopolis, I got the keys I've used so far to work but never seen any settings tabs. I'll take a closer look next time I'm making a key.
|
|