| |
@@ -5871,6 +5871,9 @@
|
| |
"User does not have any access on the repo"
|
| |
)
|
| |
|
| |
+ # Retrieve the access level of the user before it's removed
|
| |
+ access_level = get_obj_access(session, project, user).access
|
| |
+
|
| |
for u in project.users:
|
| |
if u.id == user.id:
|
| |
user = u
|
| |
@@ -5888,6 +5891,7 @@
|
| |
msg=dict(
|
| |
project=project.to_json(public=True),
|
| |
removed_user=user.username,
|
| |
+ access=access_level,
|
| |
agent=agent,
|
| |
),
|
| |
)
|
| |
The "project.user.removed" does not send out the "access" level that was revoked, unlike "project.user.added"