mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-30 03:24:47 +00:00
Do a bit_or() among multiple privilege settings.
This commit is contained in:
parent
9ff16853b2
commit
c6b95bc3f6
@ -1017,7 +1017,7 @@ BEGIN
|
|||||||
RETURN ~ out_conferred;
|
RETURN ~ out_conferred;
|
||||||
END IF;
|
END IF;
|
||||||
|
|
||||||
SELECT privileges INTO out_conferred FROM grants
|
SELECT bit_or(privileges) INTO out_conferred FROM grants
|
||||||
WHERE by_collection = grantor_collection
|
WHERE by_collection = grantor_collection
|
||||||
AND (to_principal=in_accessor OR to_principal IN (SELECT expand_memberships(in_accessor,in_depth)));
|
AND (to_principal=in_accessor OR to_principal IN (SELECT expand_memberships(in_accessor,in_depth)));
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user