BuildRoleLinks manually rebuild the role inheritance relations.
()
| 182 | |
| 183 | // BuildRoleLinks manually rebuild the role inheritance relations. |
| 184 | func (e *SyncedEnforcer) BuildRoleLinks() error { |
| 185 | e.m.Lock() |
| 186 | defer e.m.Unlock() |
| 187 | return e.Enforcer.BuildRoleLinks() |
| 188 | } |
| 189 | |
| 190 | // Enforce decides whether a "subject" can access a "object" with the operation "action", input parameters are usually: (sub, obj, act). |
| 191 | func (e *SyncedEnforcer) Enforce(rvals ...interface{}) (bool, error) { |
nothing calls this directly
no test coverage detected