General - .NET User Groups General issues with editing, development and graphic design.
Kentico CMS for .NET User Groups > General - .NET User Groups > Display different custom user fields depending on user role View modes: 
User avatar
Member
Member
Jon Hopper - 2/10/2009 2:51:27 PM
   
Display different custom user fields depending on user role
I have a custom field within the user table which allows me to allocate an organization to the user. I have set the input to be a drop down list which uses a query

This is fine when the administrator is part of the parent organization - they can allocate any user to any organization.

When an administrator is part of the individual organization I only want them to be able to allocate new users to their own organization and not any organization they want.

How can I change the content of the drop down list box within the custom fields depending on a users role.

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 2/11/2009 4:42:15 AM
   
RE:Display different custom user fields depending on user role
Hello,

you could check the permissions like this:
http://devnet.kentico.com/docs/devguide/checking_user_permissions.htm

You could add the options into the DropDownList according the role checking.

Best regards,
Helena Grulichova