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

Exception when determining access permissions to a site #333

Closed
atruskie opened this issue May 19, 2017 · 2 comments
Closed

Exception when determining access permissions to a site #333

atruskie opened this issue May 19, 2017 · 2 comments

Comments

@atruskie
Copy link
Member

An ActionView::Template::Error occurred in sites#show:

Access level '[:owner, :reader]' is not in available levels '["owner", "writer", "reader"]'.
lib/modules/access/validate.rb:22:in `level'

...

------------------------------- Backtrace:

lib/modules/access/validate.rb:22:in `level'
lib/modules/access/core.rb:73:in `get_level_name'
app/views/sites/show.html.haml:32:in `block in _app_views_sites_show_html_haml___2432286511837677952_31568600'

@atruskie
Copy link
Member Author

This error occurred again. Happens for non-admin users, that also are owners for their projects.

An ActionView::Template::Error occurred in sites#show:

Access level '[:owner, :reader]' is not in available levels '["owner", "writer", "reader"]'.
lib/modules/access/validate.rb:22:in `level'
------------------------------- Request:

* URL        : https://www.ecosounds.org/projects/xxx/sites/xxx

@atruskie
Copy link
Member Author

Another case:

Access level '[:owner, :reader]' is not in available levels '["owner", "writer", "reader"]'.
lib/modules/access/validate.rb:22:in `level'

atruskie added a commit that referenced this issue Jul 27, 2020
An if condition was wrong!

Fixes #333.
atruskie added a commit that referenced this issue Jul 27, 2020
An if condition was wrong!

Fixes #333.
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