test/dummy/app/models/ability.rb in templus_models-1.3.2 vs test/dummy/app/models/ability.rb in templus_models-1.3.3
- old
+ new
@@ -10,9 +10,10 @@
alias_action :action, :to => :create_or_update
# alias_action :destroy_selected, :to => :destroy
if usuario.root?
can :manage, :all
+ # can :read, Teste
else
#Permissão global
can :manage, Dashboard
# #Permissão fixa