Hi all, when I add a new permission in core file PROYECTFILEAuthorizationProvider on SetPermissions method... How update this new permission to all tenants in DB???
Thanks in advance
5 Answer(s)
-
0
Any one has a answer please? :(
-
0
Hi,
Do you want to grant this new permission to all tenant user's by default ?
-
0
Yes, imagine that I have an application and add some new functionallity, and require new permissions. This new functionallity will be available to all the tenants registered and also the new ones. How update this new permissions to all pre registered tenants??
There is some "magic" code to do that? Or we have to iterate over the tenants/roles and update? like some migration
Thanks
-
0
Hi,
There was a future like that but it is removed.
In the current version, you need to create a migration and assign this permission to all roles of tenants.
As an alternative, you can create a feature instead of permission and assign grant it for eidition of each tenant. This might be an easier way of doing it.
-
0
Thanks, I think that i will doing it using migrations or custom code, I dont want mix the terminology (features - permissions) perhaps in future this could be confusing.
Thankssss