0

"Readable if" for specific user group

We want admin group to see everything, but we want other users to only see information about themselves. I used the user() function and provide that other users only see information about themselves. However, I can't provide both of them. For example, I have an admin account and I write this function code;

if not userHasRole("admin") then
'Operation Specialist' = user()
end

However, admin group users can't read anything. Admin users should read everything. Please, support us.

2 replies

null
    • Berk_Turan
    • 4 yrs ago
    • Reported - view

    Is there anyone can help? It's a very basic case for coding but we can't do that in ninox.

    • BugTrapper
    • 4 yrs ago
    • Reported - view

    user() = 'editor' or userIsAdmin()

Content aside

  • 4 yrs agoLast active
  • 2Replies
  • 867Views