plugin:denyactions
Table of Contents
Denyactions Plugin
Compatible with DokuWiki
- 2024-02-06 "Kaos" unknown
- 2023-04-04 "Jack Jackrum" unknown
- 2022-07-31 "Igor" unknown
- 2020-07-29 "Hogfather" no
Similar to cmsmode, disableactionsbygroup, hidemenus
Installation
Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.
To upgrade the plugin from earlier (2012) version please uninstall the plugin first
Examples/Usage
After installing this plugin you have to configure it. Add a comma separated list of actions you don't want users with read only rights to execute. Check the list of valid actions
New options to deny view of old revisions. Also option for informing user for denied acces. Silend, msg or login promp.
You do not want to put something like login
in the list
Change Log
- Added option for denying old revision view
- Added option how to inform on denied acces
- Fixed some compatibility issues
Known Bugs and Issues
ToDo/Wish List
- Have you thought about generalizing this behaviour with your plugin to any group and not just users with read only right? As I understand your plugin, it goes one step further than the core code which can forbid an action for all user (except admins) through the $conf['disableactions'] setting. What could be great is a way to tell group1 doesn't get action1 and group2 doesn't get action2,action3. What do you think? — bug 2012/08/27 17:27
- Sorry. No plans (=time) for that. But feel free to take the code and extend it — oiv 2012/11/16 10:09
FAQ
Discussion
Compatible
- Work for me with DokuWiki 2014-09-29d “Hrun” — Aleksandr Selivanov 2015-08-25 09:50
- Work for me with DokuWiki 2018-04-22a “Greebo” — Moin! 2018-12-31 12:47
- Does throw error: Undefined variable $ID in …\lib\plugins\denyactions\action\rev.php on line 24 “Jack Jackrum” — hc 2024-03-12 14:20
Compatibility issues
- Does not work for me with DokuWiki 2020-07-29 “Hogfather”
- Results in a Blank Page “Fatal error: Declaration of action_plugin_denyactions::register(Doku_Event_Handler &$controller) must be compatible with dokuwiki\Extension\ActionPlugin::register(Doku_Event_Handler $controller) […]”
- Work around: Disable denyactions plugin by adding “$plugins['denyactions'] = 0;” to your /conf/plugins.local.php — fisch 2020-08-08 09:02
- Update: Here is the hot fix you can try to solve - it worked for me (thanks to retroman):
- Change
- | | ./lib/plugins/disableactionsbygroup/action.php
public function register(Doku_Event_Handler &$controller)
- To
public function register(Doku_Event_Handler $controller)
— fisch 2020-08-09 07:34
- Fix for: PHP Warning: Undefined variable $ID in ../lib/plugins/denyactions/action/rev.php on line 24
- Change
- ../lib/plugins/denyactions/action/rev.php
function handle_start(Doku_Event $event, $param) { global $INFO; global $lang;
- To
function handle_start(Doku_Event $event, $param) { global $ID; global $INFO; global $lang;
— 2024-03-26
plugin/denyactions.txt · Last modified: 2024-03-26 15:39 by 32.140.58.102