mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-29 18:52:22 +01:00
fixed user's role method call
This commit is contained in:
parent
a1ba272538
commit
068f4c829b
@ -4,7 +4,7 @@
|
||||
class AccountingPeriodPolicy < ApplicationPolicy
|
||||
%w[index show create last_closing_end].each do |action|
|
||||
define_method "#{action}?" do
|
||||
user.is_admin?
|
||||
user.admin?
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user