perm_policy.go 268 B

123456789
  1. package activity
  2. import (
  3. "github.com/qor5/admin/presets"
  4. "github.com/qor5/x/perm"
  5. )
  6. var permPolicy = perm.PolicyFor(perm.Anybody).WhoAre(perm.Denied).
  7. ToDo(presets.PermUpdate, presets.PermDelete, presets.PermCreate).On("*:activity_logs").On("*:activity_logs:*")