lazy llama
Well-known member
Is there any way of setting usergroup permission values for a new permission during the installation of an add-on? Preferably a way that won't make my tiny brain melt into a puddle of goo.
I've got a new permission that I'd like to be set to match an existing permission when the add-on is installed.
I've seen posts in here saying it might be possible using a query, and another saying you shouldn't do it, it should always be done manually using the ACP.
Looking at the db, it looks like permission combos are all stored in serialized (?) blobs so can't really be easily queried.
Also, did permissions used to have a default value which would be set for new usergroups? That doesn't seem to exist any more.
I've got a new permission that I'd like to be set to match an existing permission when the add-on is installed.
I've seen posts in here saying it might be possible using a query, and another saying you shouldn't do it, it should always be done manually using the ACP.
Looking at the db, it looks like permission combos are all stored in serialized (?) blobs so can't really be easily queried.
Also, did permissions used to have a default value which would be set for new usergroups? That doesn't seem to exist any more.