Field Level Permission

Post Reply
bkonia
User
Posts: 141

Field Level Permission

Post 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.


mobhar
User
Posts: 11660

Post 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.


stefano
User
Posts: 24

Post by stefano »

+1


vintoICT
User
Posts: 389

Post by vintoICT »

+1


btsnmail
User
Posts: 2

Post 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.


barka
User
Posts: 114

Post by barka »

+1


amiens80
User
Posts: 446

Post 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.


buhuhu
User
Posts: 203

Post by buhuhu »

+1


Post Reply