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

Dashboard accessible to non admin users #75

Open
nhinze opened this issue Dec 29, 2015 · 0 comments
Open

Dashboard accessible to non admin users #75

nhinze opened this issue Dec 29, 2015 · 0 comments

Comments

@nhinze
Copy link

nhinze commented Dec 29, 2015

The dashboard is accessible to non-admin users by typing in the URL:

/translation_center/dashboard

I used the following to restrict the admin users:

def can_admin_translations?
self.email == 'admin@mydomain.com'
end

The non-admin users cannot accept translations as expected and the the "Dashboard" link is not visible. However, if a user types in the "/translation_center/dashboard" URL, the dashboard is still accessible to them.

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

2 participants