Implemented the site ability fix for designers.
This commit is contained in:
parent
5c3cf83082
commit
a7bc648333
@ -61,6 +61,8 @@ class Ability
|
||||
|
||||
can :point, Site
|
||||
|
||||
cannot :create, Site
|
||||
|
||||
can :manage, Membership
|
||||
|
||||
cannot :change_role, Membership do |membership|
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
- if multi_sites?
|
||||
- content_for :buttons do
|
||||
= admin_button_tag t('.new_site'), new_admin_site_url, :class => 'new' if can?(:manage, Site)
|
||||
= admin_button_tag t('.new_site'), new_admin_site_url, :class => 'new' if can?(:create, Site)
|
||||
|
||||
%p= t('.help')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user