How_to_granulate_permissions_on_each_field[Permalink]How to granulate permissions on each fieldTo reach this aim, there is the method fieldname__permissions to place into the delegate class of the table. Getting the roleFirst it is necessary to know the user's role. For this, the method getUser() is added in the class :
Setting up the permissions for each fieldNext, the permissions are built for each column or field where they are needed, like in this example where the method name is formed with the field name, followed by 2 underscores then by permissions :
Also See
|