1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-06 01:08:21 +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 class AccountingPeriodPolicy < ApplicationPolicy
%w[index show create last_closing_end].each do |action| %w[index show create last_closing_end].each do |action|
define_method "#{action}?" do define_method "#{action}?" do
user.is_admin? user.admin?
end end
end end
end end