
OR in access grants
We're bulking up access grants for more complex use cases. Now you can structure more complex permissions logic using or between attributes for layered AND / OR grants.
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
Okay, I think I'm ready. Um, let me preface this by saying that yesterday I procrastinated for three or four hours, implementing new model parameters to uh accomplish what I wanted. And then when I did all that and it worked, I thought, "Oh, there's a much better way to do this that only takes 15 minutes, which I uh did this morning."
So I threw away half a day of work and uh I'm showing you what I did this morning. So, from time to time we get requests from people who are confused or frustrated with their access rights settings. So, uh, permissions require...we have this: you can create permissions in the model file, and then in the theme , view, or field, you can specify the permissions you need .
Until now, the system worked in such a way that we required all necessary access rights for a specific user, otherwise they could not access the object. But sometimes people want to base their access on having at least one of the appropriate access rights. Uh, and to show the current state, oh, I'll show you my user attributes that I have.
So, I have these three user attributes. Uh, they are set to "all grant" . I have "default yes", "any grant one", I have "default yes ", and "any grant two". I have a " default no". So you can imagine, my user—I didn't change them at all, but my user has "all grant", "any one", but not "any two".
Uh, if I go to a new analysis from here, I'll do it very quickly . I only see the " orders item" section because I don't have " any" access rights. But if I go in and change that, I'll just put a vertical bar to say " or anyone, or any two" and " all grant". Uh, and now if I go here and refresh the page, then yes .
So now we can actually control uh access rights. We can specify whether we want to impose restrictions using "all", "and" or "or" for the required access rights. And this uh is available wherever the required access rights or the typical required access rights at the model level are allowed. So uh, it's not released yet, but we'll probably release it this afternoon.
Uh, and that's it .