Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Different exception messages for same pair of actions and subject #1047

Open
bestiara opened this issue May 22, 2017 · 0 comments
Open

Different exception messages for same pair of actions and subject #1047

bestiara opened this issue May 22, 2017 · 0 comments

Comments

@bestiara
Copy link

Hi. After reading the wiki, I realized that I can assign custom error messages for different pairs of actions and subject. But how can I assign different messages for same pairs, but for different conditions of access dening? Like here:

cannot :manage, [Document, Plan] unless user.have_access?
cannot :manage, [Document, Plan] unless user.ready_for_work?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant