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

Authentication menu #4234

Closed
TenGbps opened this issue Oct 11, 2017 · 4 comments
Closed

Authentication menu #4234

TenGbps opened this issue Oct 11, 2017 · 4 comments
Assignees
Labels
Milestone

Comments

@TenGbps
Copy link

@TenGbps TenGbps commented Oct 11, 2017

Menu Authentication dont show when have perm to see it.

Permissions

        "roles:edit", 
        "roles:create", 
        "roles:read", 
        "roles:delete", 
        "users:tokencreate", 
        "users:rolesedit:*", 
        "users:edit:*", 
        "users:permissionsedit:*", 
        "users:list", 
        "users:tokenlist", 
        "users:create", 
        "users:passwordchange:*", 
        "users:tokenremove

The menu is hidden on dashboard.

  • Graylog Version: 2.3.1
  • Elasticsearch Version: 5.5.1
  • MongoDB Version: 2.6.12
  • Operating System: CentOS7
  • Browser version: Firefox ESR 52.4
@joschi
Copy link
Contributor

@joschi joschi commented Oct 11, 2017

@TenGbps I'm not sure what you mean. Maybe you could add a screenshot?

@TenGbps
Copy link
Author

@TenGbps TenGbps commented Oct 11, 2017

With
"*",

allperm

With

        "roles:edit", 
        "roles:create", 
        "roles:read", 
        "roles:delete", 
        "users:tokencreate", 
        "users:rolesedit:*", 
        "users:edit:*", 
        "users:permissionsedit:*", 
        "users:list", 
        "users:tokenlist", 
        "users:create", 
        "users:passwordchange:*", 
        "users:tokenremove",

without

@joschi
Copy link
Contributor

@joschi joschi commented Oct 11, 2017

@TenGbps In order to see the System / Authentication menu item, users require the following permissions:

  • users:list
  • roles:read

Are you sure your user has a role which includes these permissions?

{this.isAnyPermitted(this.props.permissions, ['users:list, roles:read']) &&
<LinkContainer to={Routes.SYSTEM.AUTHENTICATION.OVERVIEW}>
<MenuItem>Authentication</MenuItem>
</LinkContainer>
}

@joschi
Copy link
Contributor

@joschi joschi commented Oct 11, 2017

Ah!

There's a typo in the permissions. It's missing the single quotes between the individual permissions.

@TenGbps Thanks for reporting this!

@joschi joschi self-assigned this Oct 11, 2017
@joschi joschi added bug web labels Oct 11, 2017
@joschi joschi added this to the 2.4.0 milestone Oct 11, 2017
joschi pushed a commit that referenced this issue Oct 11, 2017
Jochen Schalanda
Fixes #4234
@ghost ghost added the in progress label Oct 11, 2017
@ghost ghost removed the in progress label Oct 13, 2017
kroepke added a commit that referenced this issue Oct 13, 2017
kroepke added a commit that referenced this issue Oct 13, 2017
Fixes #4234

(cherry picked from commit 1d5372c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants