acl rights
This commit is contained in:
@@ -44,7 +44,7 @@ func (s *Service) ApplyRetention(ctx context.Context, actorID, documentID ident.
|
||||
if documentRow.DeletedAt.Valid {
|
||||
return RetentionResult{}, fmt.Errorf("%w: %s", document.ErrDocumentDeleted, documentID)
|
||||
}
|
||||
if err := s.can(ctx, actorID, documentID, permission.Manage); err != nil {
|
||||
if err := s.can(ctx, actorID, documentID, permission.Admin); err != nil {
|
||||
return RetentionResult{}, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user