Own permission for new addon@
Mike Macgirvin @
Mario Vavti Please could you give me some advice.
What I would like to have: A permission "view_myaddon" analogue to
perm_is_allowed($owner_uid, get_observer_hash(), 'view_storage')
Is it possible?
If yes, could you please give me some hints how to do it.
Background
I would like to change the permission system of the addon
faces. The current implementation works but should be improved and simplified.
My plans
- Use "view_faces" to allow / block an observer to open the addon of a channel owner.
- table faces_encoding: Do not use explicit permissions (anymore). All encodings should use the permission of the image it belongs to.
- table faces_name: Every name should have an individual permission, or, if not set, use "view_faces".