Jump to content

Omit access check in (showif) field dependencies?


kater
 Share

Recommended Posts

Hi,

I've access-controlled toggles (Superuser) that should control the visibility of Inputfields (repeater downloads) on the edit-page (modal) to editors.
Is there a way to access the field value of those toggles (downloads_allow) for showif visibility?
i only (rightly so) get the value if the toggle (downloads_allow) is editable by the editor.
Is there a way to omit this just like the page selector "check_access=0".
Maybe it's also possible to extend the "access fields via api even if hidden" option to such dependencies?

thanks!

Edit Page:
- Tab Permissions
- - Toggle "allow_downloads" (set by Superuser, access-controlled)

- Tab Downloads
- - Downloads Repeater (only visible to Editor if allowed)

Link to comment
Share on other sites

Hi Ivan,

Yes, you're right and I'm doing it like this now but I'm looking for a way to add/remove fields without having to adapt the ready.php.
The available fields will change occasionally.

Thanks!

Added:
If one chooses to not access-control the toggles, adrians great RestrictTabView module is an option.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...