Base solution for your next web application
Open Closed

Update permissions to all Tenants #2187


User avatar
0
benjaminrivero created

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)
  • User Avatar
    0
    benjaminrivero created

    Any one has a answer please? :(

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Do you want to grant this new permission to all tenant user's by default ?

  • User Avatar
    0
    benjaminrivero created

    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

  • User Avatar
    0
    ismcagdas created
    Support Team

    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.

  • User Avatar
    0
    benjaminrivero created

    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