You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have made user groups referencing Tenant objects, so that their permissions are defined by their corresponding tenant. I have a custom field on Prefix called "Partial Tenants", which is a list of tenants. These Tenants are supposed to get limited CRUD rights on the Prefix object, while the default tenant has full rights. Each Tenant represents a user permission group. My constraint for the user group with ID 5 now looks like this:
I hate it, but it works for now. Is there a more elegant solution for this problem, possibly without regex? It is my goal that users can assign "partial tenants" on their prefixes, so that they can allow other users to partially access/ modify them, without manually defining User permissions objects each time.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I have made user groups referencing Tenant objects, so that their permissions are defined by their corresponding tenant. I have a custom field on Prefix called "Partial Tenants", which is a list of tenants. These Tenants are supposed to get limited CRUD rights on the Prefix object, while the default tenant has full rights. Each Tenant represents a user permission group. My constraint for the user group with ID 5 now looks like this:
{"custom_field_data__iregex": "r*("Partial Tenants": ).(([0,9], )*(5{1}))"}
I hate it, but it works for now. Is there a more elegant solution for this problem, possibly without regex? It is my goal that users can assign "partial tenants" on their prefixes, so that they can allow other users to partially access/ modify them, without manually defining User permissions objects each time.
EDIT: typo
Beta Was this translation helpful? Give feedback.
All reactions