blob: dcfeb0acfe7add81a45dce073d1b77634c1ba7a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
require 'permissions/set'
module Permissions
module AnyoneCanViewAdminCanChange
multi_permission :create, :update, :destroy do
acting_user.administrator?
end
def view_permitted?(field)
true
end
end
end
|