QuackieMackie
Active member
I'm thinking about adding dynamic permissions to the https://github.com/Sylphian-Network/Sylphian-Library I was working on, but I'm unsure if this would be possible / easy.
The goal would be to when my add-on gets installed sweep the other installed add-ons and create permissions based of the results. When other addons get installed / uninstalled it would also update the permissions based of the listener. This would mean admins can control who has permission to view each add-on logs rather than a single permission to view them all.
I believe it can be done, but if it would be done cleanly is another matter.
So permissions seems to be easy to handle, I don't believe it's that complicated, but it's the phrases that leave me a little stumped. I'd need to generate a phrase with each add-on permission created. From what I can see of the database phrases has
Also just to make sure
theres not an easy method I missed for generating phrases in add-ons is there?
The goal would be to when my add-on gets installed sweep the other installed add-ons and create permissions based of the results. When other addons get installed / uninstalled it would also update the permissions based of the listener. This would mean admins can control who has permission to view each add-on logs rather than a single permission to view them all.
I believe it can be done, but if it would be done cleanly is another matter.
So permissions seems to be easy to handle, I don't believe it's that complicated, but it's the phrases that leave me a little stumped. I'd need to generate a phrase with each add-on permission created. From what I can see of the database phrases has
xf_phrase
, xf_phrase_compiled
, and phrase_map
. Is anyone able to explain what these do?Also just to make sure
