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

Group permission does not work #1

Closed
jpobeda opened this issue Jul 17, 2017 · 2 comments
Closed

Group permission does not work #1

jpobeda opened this issue Jul 17, 2017 · 2 comments

Comments

@jpobeda
Copy link
Contributor

jpobeda commented Jul 17, 2017

Hi there,

I'm not sure if this is being handle by Cacti or per plugin. In any case, please advise.

I created a Group to manage permissions and it doesn't work by group or user, meaning that the option is not desplayed. I did try giving permissions to other plugins. Audit and weathermap are the only two not working.

Since it's shown as an option under "Plugin permissions" I thought it should work.

Running Cacti 1.1.12

@cigamit
Copy link
Member

cigamit commented Jul 21, 2017

You don't have to do anything special to confirm group permissions. You just use the api to add the realm, and then grant the user group permission to the realm. The following api function in lib/auth.php is then called to verify if the user/group combination has permission to the realm:

function is_realm_allowed($realm) {}

That's all there is to it. I recommend you talk to Howie about his use of standard permissions. Right now, he has his own permission system that does not recognize the Cacti Groups presently. Audit, I'm surprised just a little. It's kind of a simple plugin.

cigamit added a commit that referenced this issue Jul 21, 2017
-issue: Dont show the audit menu pick if the user does not have
permission
@cigamit
Copy link
Member

cigamit commented Jul 21, 2017

I found the issue. Resolving. So, ignore everything I said. I was showing the View Audit Log even when the user did not have permission. The update fixes that.

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

No branches or pull requests

2 participants