Skip to content

Commit

Permalink
Fxies minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
emmdim committed Jan 30, 2025
1 parent 00fec15 commit 54976ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subscriptions/subscriptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (p *Subscriptions) HasTxPermission(
// check SET_PROCESS
case models.TxType_SET_PROCESS_STATUS:
// check if the user has the admin role for the organization
if !user.HasRoleFor(org.Address, db.AdminRole) || !user.HasRoleFor(org.Address, db.ManagerRole) {
if !user.HasRoleFor(org.Address, db.AdminRole) && !user.HasRoleFor(org.Address, db.ManagerRole) {
return false, fmt.Errorf("user does not have admin role")
}

Expand Down

0 comments on commit 54976ad

Please sign in to comment.