solidusio / solidus_auth_devise

🔑 Devise authentication for your Solidus store.
http://solidus.io
BSD 3-Clause "New" or "Revised" License
52 stars 124 forks source link

Disable backend footer profile edit link if role cannot edit users #120

Closed cringegnere closed 5 years ago

cringegnere commented 6 years ago

A user with a role that can access the backend main page but has no permissions to edit users will get a misleading "Authorization Failure" error. With this fix the user will be cleanly routed to the main page without displaying any errors.