Override global ACL

Hi all,

Maybe some of you would like to override global ACLs in a queue.
Attached is the patch against .64.

Please note the new field ‘OverrideGlobalACL’ field in Queues table in
database. There will be a new field labeled 'Override global rights’
in the page of queue basics, as well as those of group rights and user
rights. If it is checked, global ACLs will be ignored in that queue
(unless you’re THE root, of course). Any rights you want to grant to
users must be set up.

Ya, it’s better if a specific ACL could be revoked, but I don’t know
how to implement it. This is the quickest way I can think of.

Hope it helps.

plasma

OverrideGlobalACL.diff (9.21 KB)

Maybe some of you would like to override global ACLs in a queue.
Attached is the patch against .64.

And I found a slowness caused by this patch. Drop the following
index

CREATE INDEX ACL1 on ACL(RightName, ObjectType, ObjectId,
PrincipalType,PrincipalId);

by

DROP INDEX ACL1 on ACL;

and add the following index:

CREATE INDEX ACL1 on ACL(RightName, ObjectType, PrincipalType,PrincipalId);

Before the patch, some ACL queries will be VERY VERY slow. Although
the index is for OverrideGlobalACL patch, it should work on vanilla
RT.

plasma

�e�b�~�ɤQ�U�K��
http://edm-prg.epaper.com.tw/click.php?ad_code=1401
PC home Online �����a�x�G�|���Ĥ@�A�x�W�̤j���J�f����