Skip to content

Commit be233f1

Browse files
committed
Don't require release approval for not joined/new members
1 parent de687f6 commit be233f1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/models/packages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ def check_perm(self, user, perm):
860860
return is_maintainer and user.rank.at_least(UserRank.NEW_MEMBER)
861861

862862
elif perm == Permission.APPROVE_RELEASE:
863-
return (is_maintainer or is_approver) and user.rank.at_least(UserRank.MEMBER if self.approved else UserRank.NEW_MEMBER)
863+
return is_maintainer or is_approver
864864

865865
# Anyone can change the package name when not approved
866866
elif perm == Permission.CHANGE_NAME:

0 commit comments

Comments
 (0)