(rbacObj rbac.Object)
| 10 | ) |
| 11 | |
| 12 | func isWorkspaceRBACObjectEmpty(rbacObj rbac.Object) bool { |
| 13 | // if any of these are true then the rbac.Object work a workspace is considered empty |
| 14 | return rbacObj.Owner == "" || rbacObj.OrgID == "" || rbacObj.Owner == uuid.Nil.String() || rbacObj.OrgID == uuid.Nil.String() |
| 15 | } |
| 16 | |
| 17 | type workspaceRBACContextKey struct{} |
| 18 |
no test coverage detected