refac: debt on role backend
This commit is contained in:
1 parent
de142f6c5f
commit
a043f7f41a
130 files changed
+3591
-512
No files matched your search
@@ -76,7 +76,7 @@ func TestRolesPermissionsEnforcementAuthorLinking(t *testing.T) {
|
||||
authors.seedLinked(3, "Dangling", "dangling", 99)
|
||||
users := newMockUserRepo()
|
||||
users.users[5] = user.User{ID: 5, Email: "five@example.com"}
|
||||
grants := role.NewGrantSet([]role.Grant{scopedGrant(role.KeyUsersView, role.ScopeAll)})
|
||||
grants := unlockedGrantSet(role.KeyUsersView + "=all")
|
||||
|
||||
page, err := useCases.NewListAuthorsUseCase(authors, users).List(useCases.ListAuthorsCommand{Page: 1, Size: 25, Grants: grants})
|
||||
|
||||
|
||||
Reference in new issue
Block a user