Inforce the Servoy permissions by using methods

Hi all,

We have three solutions with around 200 forms.

For the security we have three Servoy security groups:

  1. Basic users with insert permission.
  2. Advance users with Servoy insert and update permission.
  3. Admin with all permissions.

Is there a way to inforce the above permissions by using methods when users login to each solution?

Thanks,

Abrahim

Is there a way to inforce the above permissions by using methods when users login to each solution?

I am not sure I completely understand your question but I guess you want the rules applied attached to one of these three groups.

These groups are either activated because the user logging is belongs to one or more of these groups

With Servoy 3.x you can create your own login and activate a user yourself.

Does this help?

It’s not currently possible to “read” the permissions you’ve setup with checkboxes in the security UI dialog programatically. You’ll have to “roll your own”.

The security dialog settings are for when you DO NOT want to enforce it yourself - Servoy does it for you automatically.

In the current Beta of Servoy 3.5, there are 4 additional methods available under the security node:

security.canRead(serverName, tableName)
security.canInsert(serverName, tableName)
security.canUpdate(serverName, tableName)
security.canDelete(serverName, tableName)

So, you could use those to determine security settings on a table level.

I guess what I was trying to avoid was that any time we imported the solutions. The permission gets reset to back Servoy security Implicit, then I have to setup the table’s permission manually back to what it was before. May be someone can suggest me what is the best option to select while I am importing the solution back to Servoy Developer.
I know that there are three options and I unfortunately don not remember which one I used before.

Thanks-

Abrahim