#1 February 4, 2019 11:07am

doon.mok
Member
Registered: May 6, 2015
Posts: 144

Module - Edit field only for certain users

Hey Tim,

Is there a way to have end users only edit certain fields in a module?
For example, we have a Faculty directory module with Name, Title, Department and etc fields. Depending on the end users access level they can edit Name and Department but not Title?

Is this possible or any ideas to accomplish this?

Thanks

Offline

#2 February 5, 2019 1:41pm

timbuckingham
Administrator
From: Baltimore, MD
Registered: April 2, 2012
Posts: 978

Re: Module - Edit field only for certain users

You could create custom field types that check the person's access level and the draw or hide it depending on the access level. Then in the process file you could just pass

$field["ignore"] = true;

if the user's access level was below the desired level and it would prevent them from changing that field.

Offline

#3 February 5, 2019 2:41pm

doon.mok
Member
Registered: May 6, 2015
Posts: 144

Re: Module - Edit field only for certain users

Thanks for the suggestion, Ill look into this.

Offline

Board footer

Powered by FluxBB

The Discussion Forum is not available on displays of this size.