Skip to content

Commit dd7f080

Browse files
author
Qi Xiao
authored
Add missing break to users permission update
1 parent 3c6b3e2 commit dd7f080

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

worker/dbms.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ func (dbms *DBMS) UpdatePermission(dbID proto.DatabaseID, user proto.AccountAddr
299299
u.Permission = permStat.Permission
300300
u.Status = permStat.Status
301301
exist = true
302+
break
302303
}
303304
}
304305
if !exist {

0 commit comments

Comments
 (0)