What I implemented in an addon
- Create an item in table item > OK, works
- Set permissions on this item, e.g. 'allow_cid', 'allow_gid', 'deny_cid', 'deny_gid'. I do this using the ACL modal > OK, works, item shows the permissions in table item accordingly
- Open the ACL modal again with the permissions for this item > OK, works, the ACL modal now shows the permissions set before
How do I check if the observer has the permissions to access the item?
Or, is there any existing code that does something like
has_permission(observer/channel, item)
or
has_permission(channel['xchan_hash'], item['uuid'])
or ...
Any ideas?