SavePolicy saves the current policy (usually after changed with Casbin API) back to file/database.
()
| 175 | |
| 176 | // SavePolicy saves the current policy (usually after changed with Casbin API) back to file/database. |
| 177 | func (e *SyncedEnforcer) SavePolicy() error { |
| 178 | e.m.Lock() |
| 179 | defer e.m.Unlock() |
| 180 | return e.Enforcer.SavePolicy() |
| 181 | } |
| 182 | |
| 183 | // BuildRoleLinks manually rebuild the role inheritance relations. |
| 184 | func (e *SyncedEnforcer) BuildRoleLinks() error { |
nothing calls this directly
no test coverage detected