Skip to content

Commit

Permalink
fixing permissions for public channels
Browse files Browse the repository at this point in the history
  • Loading branch information
btel committed Nov 30, 2020
1 parent 457ec25 commit 60c71dc
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions quetz/authorization.py
Expand Up @@ -228,12 +228,13 @@ def assert_channel_read(self, channel):
self.assert_channel_roles(channel.name, [OWNER, MAINTAINER, MEMBER])

def assert_package_read(self, package):
self.assert_channel_or_package_roles(
package.channel_name,
[OWNER, MAINTAINER, MEMBER],
package.name,
[OWNER, MAINTAINER, MEMBER],
)
if package.channel.private:
self.assert_channel_or_package_roles(
package.channel_name,
[OWNER, MAINTAINER, MEMBER],
package.name,
[OWNER, MAINTAINER, MEMBER],
)

def assert_package_write(self, package):
self.assert_channel_or_package_roles(
Expand Down

0 comments on commit 60c71dc

Please sign in to comment.