ACL Adjustable by field

Asked

Viewed 37 times

1

Is there any solution for access control by input?

Example: a given user can access a form but cannot access a given field, another user can access the same form and have access to the field in question.

  • I believe that this type of control is effective in client-side. Maybe with Javascript...

  • 1

    But then the user will have access to circumvent

  • There is no way to do this in PHP. You can define in ACLS some rules for not load the fields for a particular user. But PHP will not control the behavior of FORM. Who controls FORM is the browser, and the browser talks to Javascript and HTML.

  • The model tb can prohibit editing certain fields based on their access rules. And in PHP, that’s what gives (I believe).

  • First question? How are you doing your authentication ? and after that, using some technique for authorization ? are complementary things but at different times! your question is very broad, could put a minimal and real example, maybe we can direct!

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.