feat: more role backend and admin/writer roles additions and adjustments
This commit is contained in:
1 parent
8c6c6456da
commit
de142f6c5f
131 files changed
+2663
-435
No files matched your search
@@ -127,7 +127,7 @@ func TestAuthorUseCases(t *testing.T) {
|
||||
uc := useCases.NewUpdateAuthorUseCase(authors, users, newMockImageRepo(), discardRecorder)
|
||||
bio := "x"
|
||||
|
||||
_, err := uc.Update(context.Background(), 2, useCases.AuthorCaller{UserID: 9, Role: "user"}, author.Patch{Bio: &bio})
|
||||
_, err := uc.Update(context.Background(), 2, useCases.AuthorCaller{UserID: 9, Grants: authorsEditOwnGrants}, author.Patch{Bio: &bio})
|
||||
|
||||
if !errors.Is(err, author.ErrAuthorRights) {
|
||||
t.Errorf("err = %v", err)
|
||||
|
||||
Reference in new issue
Block a user