1
0
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:
Sylvain 2019-01-14 14:32:00 +01:00
parent a1ba272538
commit 068f4c829b

View File

@ -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