Serenity: How to make one field in XXEnitityColume just visible to special role

Created on 26 Mar 2016  路  8Comments  路  Source: serenity-is/Serenity

I have learned how to make one field just visible to special role in XXEntiyForm ,but how can I implement one field in XXEnitityColume just visible to special role?

Most helpful comment

@zerodev Follow the tutorials of tenant ,which handle the field of tenantId visible only to admin.

All 8 comments

How did you do the first one?

@zerodev Follow the tutorials of tenant ,which handle the field of tenantId visible only to admin.

I recommend using permissions for this. Assign a permission only to that role. Roles are only a set of permissions. Don't depend on them.

Navigasyon daha uygun yap谋land谋r谋lm谋艧 edilemiyorsa, do臒rudan veritaban谋na eklemek

Admin can be removed, it should be prohibited under the

@volkanceylan yes, I just want to make one field has a special read/write permission,how can I do this?

Look at the document, it's all over.

There is a topic about GetEditableFields in multi tenant guide. That is what you need.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Pinellus picture Pinellus  路  3Comments

Akarsh03 picture Akarsh03  路  3Comments

john20xdoe picture john20xdoe  路  3Comments

dudeman972 picture dudeman972  路  3Comments

dkontod picture dkontod  路  3Comments