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

Создание ресурсов без глобальной роли #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

numbata
Copy link

@numbata numbata commented Jan 21, 2016

Хочется иметь возможность сделать ресурсы которые будут не доступны глобальной роли. К примеру:

YaAcl::Builder.build do
  roles do
    role :admin,    :name => 'Администратор'
  end

  resource 'Devise::SessionsController', [:guest] do
    privilege :new
    privilege :create
  end
end

Потому как если у тебя уже есть роль admin значит ты залогинен и создать сессию еще раз тебя не положено.

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

Successfully merging this pull request may close these issues.

2 participants