Page 1 of 1

Field Level Permission

Posted: Thu Feb 10, 2022 2:20 am
by bkonia

I'd like field-level permissions to be implemented as a first-class feature in PHPMaker, replacing the Fields Visibility extension.

The Fields Visibility grid is so huge that it's difficult to work with when you have dozens of tables, each containing many fields. Also, it only allows for controlling visibility, not read/write permissions. I know you can set field permissions in code, and I do, but it would be much nicer to have this available within the UI.

Ideally, field-level permissions would be implemented in the field settings within the main UI. For each field, you should be able to enter a function that determines the permissions based on whatever criteria you want; for example, user level. This could be constructed so that PHPMaker sets the permissions based on the return value from the function. For instance, 0 for hidden, 1 for read-only plain text display, 2 for a read-only field, and 3 for full read/write capability.

This points to a related issue with the ReadOnly property, whereby it renders as a read-only field component, rather than plain text, which would be preferable in most cases. To display plain text in lieu of a field component, you have to use the Custom Edit Tag feature, which is not as convenient as just setting a property. Perhaps PHPMaker could provide a new property called PlainText, that could be set instead of the ReadOnly property.


Re: Field Level Permission

Posted: Thu Feb 10, 2022 8:02 am
by mobhar

bkonia wrote:

Perhaps PHPMaker could provide a new property called PlainText, that could be set instead of the ReadOnly property.

I second for this.


Re: Field Level Permission

Posted: Thu Mar 24, 2022 4:38 am
by stefano

+1


Re: Field Level Permission

Posted: Wed Apr 13, 2022 2:32 pm
by vintoICT

+1


Re: Field Level Permission

Posted: Sat Dec 17, 2022 8:32 pm
by btsnmail

+1

may be better 0-read only/shared;1-read&write/shared;2-read only/exlusive;1-read&write/exlusive; for wvery fields.


Re: Field Level Permission

Posted: Sat Jul 15, 2023 6:56 pm
by barka

+1


Re: Field Level Permission

Posted: Fri Jul 21, 2023 3:13 pm
by amiens80

before a field level permission,

i would prefer having a page level permission.
as we can organiz field in pages, it would be a good way to restrict field to people.

Actualy, i did it by client script to hide/remove page once i check the user profile id.


Re: Field Level Permission

Posted: Mon Jul 31, 2023 1:36 pm
by buhuhu

+1