Skip to content

Commit

Permalink
Update x/observer/keeper/msg_server_update_observer.go
Browse files Browse the repository at this point in the history
Co-authored-by: Charlie Chen <[email protected]>
  • Loading branch information
lumtis and ws4charlie authored Mar 5, 2024
1 parent 4ad7f95 commit 42f62a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/observer/keeper/msg_server_update_observer.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func (k Keeper) CheckUpdateReason(ctx sdk.Context, msg *types.MsgUpdateObserver)
}
case types.ObserverUpdateReason_AdminUpdate:
{
// Admin policy group 2 is authorized to update observer
// Group admin is authorized to update observer
if !k.GetAuthorityKeeper().IsAuthorized(ctx, msg.Creator, authoritytypes.PolicyType_groupAdmin) {
return false, types.ErrNotAuthorizedPolicy
}
Expand Down

0 comments on commit 42f62a7

Please sign in to comment.