Bug #15425
closedAdd hook to t3lib_TCEmain::checkModifyAccessList()
0%
Description
For the extension civserv a finer granulation of the rights concept is needed: the civserv model-service-workflow requires editors to edit certain records in the BE while at the same time they do not have the right to delete any of these records (nor to create new records of that kind).
We propose a hook in the function checkModifyAccessList($table) in class.t3lib_tcemain.php, which can be used by a function function recheckModifyAccessList($table, $cmdmap, $pObj, &$res).
Please see the attached file for a code-implementation of the hook, the way we use it today.
the hook we propose is only a crook in some way: it would be best (for the purposes of civserv and perhaps other extensions as well?) if there was a possibility to eleminate the bin-symbol from the BE (extended view) in certain cases.
The TSConfig "options.disabledelete.[table]" brings us halfway where we would like to be - only we would like to prevent the editor from being able to delete records from certain tables at all.
Kind regards
britta kohorst
(issue imported from #M2278)
Files
Updated by citeq about 18 years ago
Hello,
I wonder did anybody of the core team ever consider this hook request for t3lib/tcemain->checkModifyAccessList requested for the extension civserv?
We would very much like to keep civserv up-gradable for anybody / any city that wishes to use it.
I will add a patch to this issue - I hope that'll promote our cause
I also hope I have created the hook correctly by using the dif function of our linux distribution:
diff our_version_of_tcemain org_version_of_tcemain > t3lib_tcemain_402.diff
kind regards
britta kohorst
citeq
Updated by Michael Stucki about 18 years ago
Thanks for the reminder. I will take care of this.
Updated by Martin Kutschker about 18 years ago
A hook is fine, but I think other installations could benefit from a finer default granulation as well.
Updated by citeq about 18 years ago
Hi,
I just realised that I had not made the patch correctly.
I will add the now hopefully correct patch - created by
diff -u -r -N class.t3lib_tcemain.php class.user_tcemain.php > patch-t3lib_tcemain-user_tcemain_4.0.2
Updated by Oliver Hader about 15 years ago
Committed to SVN Trunk (rev. 5958)
Unit-tests were committed as follow-up to rev. 5959