GetSimple Support Forum
New permissions plugin available - Printable Version

+- GetSimple Support Forum (
+-- Forum: GetSimple (
+--- Forum: Plugins (
+--- Thread: New permissions plugin available (/showthread.php?tid=10784)

New permissions plugin available - craiga - 2019-04-10

Simple Access Plugin
An updated version from the original and much simpler.

Depending on the permissions set for each user, users can access and edit all pages created by another user.
The plugin does NOT allow access the targeting of specific pages per se but rather whole collections created by another user. 

A good example would be:

User 'John' has created three pages.
User 'Sally' is granted access to pages created by user 'John'.

So, everything John created is available to Sally.

The 'Simple Access' plugin hide pages depending on the user logged in. The plugin obtains the author of each page and if the author value does not match the logged in user or does not possess the correct permissions, then the page entry is removed from the pages listing in pages.php.
The same principle is also applied to pages in edit.php too

Tried uploading the plugin to 'addons' but keep getting errors so it's available here:

RE: New permissions plugin available - Carlos - 2019-04-11

I suggest you rename your globals and functions by adding some prefix. It is common practice in GS plugin development.
$user, $userFlag, ... , setUser(), afterSave(), ... are general names that could clash with other scripts.

RE: New permissions plugin available - craiga - 2019-04-11

Thanks Carlos,
had wondered about that. 
will change them.


thanks for the input

RE: New permissions plugin available - shawn_a - 2019-04-11

I have no problem uploading a new plugin