(perm codersdk.Permission)
| 256 | } |
| 257 | |
| 258 | func convertSDKPerm(perm codersdk.Permission) database.CustomRolePermission { |
| 259 | return database.CustomRolePermission{ |
| 260 | Negate: perm.Negate, |
| 261 | ResourceType: string(perm.ResourceType), |
| 262 | Action: policy.Action(perm.Action), |
| 263 | } |
| 264 | } |
| 265 | |
| 266 | func TestSystemRoles(t *testing.T) { |
| 267 | t.Parallel() |