GetAllObjects gets the list of objects that show up in the current policy.
()
| 40 | |
| 41 | // GetAllObjects gets the list of objects that show up in the current policy. |
| 42 | func (e *Enforcer) GetAllObjects() ([]string, error) { |
| 43 | return e.model.GetValuesForFieldInPolicyAllTypesByName("p", constant.ObjectIndex) |
| 44 | } |
| 45 | |
| 46 | // GetAllNamedObjects gets the list of objects that show up in the current named policy. |
| 47 | func (e *Enforcer) GetAllNamedObjects(ptype string) ([]string, error) { |
nothing calls this directly
no test coverage detected