Table of Contents
disableactionsbygroup Plugin
Compatible with DokuWiki
elenor of tsort, Greebo
This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
Similar to cmsmode, denyactions, hidemenus
Installation
Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.
Examples/Usage
Set up a list of actions to disable by group in the plugin configuration settings, such as:
admin:;author:;user:edit,media,diff,source,backlinks
This will cause members of the admin and author groups to have no actions restricted; members of the user group will have edit, media, diff, source and backlinks restricted, and other users or people not logged in will have whatever settings you specified in the disableactions generic config setting.
Syntax
groupname1:action1,action2,action3,...;groupname2:action1,action2,action3,...
groupname1, groupname2, etc are user groups. The order in which groups are specified is significant; only the first match found applies to any particular user.
action1, action2, action3, etc are actions, as listed on action modes
Configuration and Settings
Development
Change Log
- Merge pull request #5 from Vrishna/patch-1 (2023-03-12 16:39)
- Update action.php (2020-08-28 08:44)
- Merge pull request #2 from rnck/patch-1 (2018-12-28 13:52)
- Merge pull request #3 from Grbd-Forks/master (2018-12-28 13:49)
- Added plugin URL (2018-02-12 15:40)
- Added support for ALL users (users that are not logged in) (2018-02-12 15:39)
- Add URL to plugin.info.txt (2017-06-20 13:23)
- first commit (2016-09-19 10:36)
Known Bugs and Issues
This plugin will not work if trustExternal is used for authentication.
ToDo/Wish List
- More structured configuration
- Make it work for remote groups (AD/LDAP)
FAQ
Discussion
Restrictions to ALL group
Does this plugin work when applied to the “ALL” group? It doesn't seem like it. If I am right… is there any way to apply action restrictions to this group (vistors who are not logged in)?
In my config I added:
admin:;user:edit,revisions,export_raw,export_xhtml,export_xhtmlbody;all:edit,revisions,export_raw,export_xhtml,export_xhtmlbody
The restrictions work fine for a logged-in user but not for ALL (non logged-in visitor). Thanks in advance for any relevant information — Branmabon Kaesgard 2017-02-25 17:42
Hi! The default settings are responsible for disabling actions to the @ALL. The settings of this plugin override all available actions for groups.
rc-2020-06-09 "Hogfather" RC3
Hey guys just installed this plugin and got a 500er white screen of death, here is the fix (seems like a typo?): Change
- | | ./lib/plugins/disableactionsbygroup/action.php
public function register(Doku_Event_Handler &$controller)
To
public function register(Doku_Event_Handler $controller)
— retroman 2020-07-18 15:33
And
- | | ./lib/plugins/disableactionsbygroup/action.php
$this->disablebygroupids(array('ALL')); return;
To
{ $this->disablebygroupids(array('ALL')); return; }