Project

General

Profile

Actions

Bug #15425

closed

Add hook to t3lib_TCEmain::checkModifyAccessList()

Added by citeq almost 19 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2006-01-16
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

bugtracker_hook.txt (1.38 KB) bugtracker_hook.txt Administrator Admin, 2006-01-16 09:22
bug_2278.diff (1.05 KB) bug_2278.diff Administrator Admin, 2006-10-10 13:09
patch-t3lib_tcemain-user_tcemain_4.0.2 (1.26 KB) patch-t3lib_tcemain-user_tcemain_4.0.2 Administrator Admin, 2006-10-10 15:20
0002278_v3.patch (5.07 KB) 0002278_v3.patch Administrator Admin, 2009-09-02 14:41
0002278_v3_test.patch (2.39 KB) 0002278_v3_test.patch Administrator Admin, 2009-09-02 14:41
0002278_v4.patch (5.04 KB) 0002278_v4.patch Administrator Admin, 2009-09-17 21:21
Actions #1

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

Actions #2

Updated by Michael Stucki about 18 years ago

Thanks for the reminder. I will take care of this.

Actions #3

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.

Actions #4

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

Actions #5

Updated by Oliver Hader about 15 years ago

Committed to SVN Trunk (rev. 5958)
Unit-tests were committed as follow-up to rev. 5959

Actions

Also available in: Atom PDF