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

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

Closed
wants to merge 1 commit into from
Closed

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

wants to merge 1 commit into from

Conversation

vad4msiu
Copy link

@vad4msiu vad4msiu commented Oct 3, 2012

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

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

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

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

@numbata
Copy link

numbata commented Jan 21, 2016

отребейзился от мастера и разрешил конфликты в #6

@numbata numbata closed this Jan 21, 2016
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