Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System edit privileges required to permit non-admin to change camera mode #548

Closed
ghost opened this issue Oct 5, 2017 · 3 comments
Closed

Comments

@ghost
Copy link

ghost commented Oct 5, 2017

If i use one other user that admin i must give this user the system EDIT privileges to permit to him to change the mode of his camera: ie from MODECT to MONITOR for example.

And of course, if i give this user the system/EDIT privs he can change the mode of all the cameras (global config in your app) and stop or restart the ZM server.

Without this edit priv, the user can't change the mode from ZmNinja.

I've tested this on the console and with ZM VIEW, it works fine. So it doesn't seem to be a user account privileges or trouble but perhaps one Zmninja/API one ?
Eric

@ghost
Copy link
Author

ghost commented Oct 5, 2017

An error in the title of the issue, you must read:
Problems whith other user than ADMIN

@pliablepixels pliablepixels changed the title Problems whith other user thanks ADMIN System edit privileges required to permit non-admin to change camera mode Oct 5, 2017
@pliablepixels
Copy link
Member

pliablepixels commented Oct 5, 2017

This is a ZoneMinder API issue - you might want to open an issue in ZM
The code that is responsible for this is https://github.com/ZoneMinder/ZoneMinder/blob/master/web/api/app/Controller/MonitorsController.php#L125

Basically ,the monitor API allows you to edit many monitor parameters why is why its currently in System Edit permission.

For your purposes, you can try changing web/api/app/Controller/MonitorsController.php line 15 to if ($this->Session->Read('monitorPermission') != 'Edit') and see if it works. If this is how ZM console behaves, you might want to create an issue in ZoneMinder with this fix.

zmView doesn't use the API, so the API layer permissions don't apply to it.

@pliablepixels
Copy link
Member

resolved in ZoneMinder/zoneminder#1994

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant