End of day commit

This commit is contained in:
2015-02-18 22:36:47 +01:00
parent 82670f271b
commit c1858455e9
68 changed files with 633 additions and 145 deletions
+11
View File
@@ -0,0 +1,11 @@
class Ability
include CanCan::Ability
def initialize(settings)
settings ||= SupplierEmployeesSettings.new(Supplier.new).for_employee(nil)
if settings.manager?
can :manage, :all
else
can :read, :all
end
end
end