dotnetic Posted November 2, 2018 Share Posted November 2, 2018 Expose the actual user and his role/s through the ProcessWire.config object so we can use them in JavaScript to trigger actions just for specific users or roles in the admin (frontend would be nice too). Right now the actual user and roles are assigned as a classname to the body element (user-username) Why would the enhancement be useful to users? I think this could be useful for many use cases like my request #236 or for AdminOnSteroids, because we can select which scripts are executed for which role or user. @tpr You can vote here for my request https://github.com/processwire/processwire-requests/issues/241 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now