BadrIT / translation_center

Translation Center is a multi-lingual, GUI rich, community based, translation center for Rails apps
http://www.badrit.com/gems/translation_center/
MIT License
152 stars 71 forks source link

Dashboard accessible to non admin users #75

Open nhinze opened 8 years ago

nhinze commented 8 years ago

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.