0

Read permissions on fields that can be read/write only by admin users: global database settings management

I'm developing a solution that has a configuration Page that only two type of users, "admin" and "editor" can acess/view. I've set this options in the page settings: 

The page has some navigation buttons (both admin and editor can use them) but also some configuration fields (or global variables that anyone can/must read) that the "admin" can also set (so, only the "admin" has "write access".)

There is a certain field in the Page with this settings:

 As you can see, everyone has Read and Write access to it. 

The problem is: when a user that's not admin nor editor executes a Script that reads the value of this field, it returns nothing!

What I want to do:

  1. Have a configuration page with fields that anyone must read (global settings), but only users of type admin can set.
  2. The configuration page must be only accessed by certain users

If I set the page as "hidden", then no one can see the page, only the developers when turn on the edit mode in Ninox.

If I set the above read/write settings, then only admins and editors can read the value of  the configuration fields, but no one else.

What's the best way to have a "global variables" configuration Page whose values are global to all users of the database but only admins can set?

Reply

null

Content aside

  • 7 days agoLast active
  • 12Views
  • 1 Following