mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +07:00
[IMP] runbot: fail before contacting github if user cannot write on team
This commit is contained in:
parent
cd4c6b5e43
commit
6892546d94
@ -92,6 +92,8 @@ class RunbotTeam(models.Model):
|
|||||||
return team_loggins
|
return team_loggins
|
||||||
|
|
||||||
def _fetch_members(self):
|
def _fetch_members(self):
|
||||||
|
self.check_access_rights('write')
|
||||||
|
self.check_access_rule('write')
|
||||||
for team in self:
|
for team in self:
|
||||||
if team.github_team:
|
if team.github_team:
|
||||||
url = f"https://api.github.com/orgs/{team.organisation}/teams/{team.github_team}"
|
url = f"https://api.github.com/orgs/{team.organisation}/teams/{team.github_team}"
|
||||||
|
Loading…
Reference in New Issue
Block a user