Commit 814b4b6d authored by Giorgos Korfiatis's avatar Giorgos Korfiatis
Browse files

Let admin see project status just like its owner

Admin is interested in projects `Pending for review'. They appeared
as `Unknown' in the project list before. With the current change,
the status of an admin being a member of a project is hidden,
since we don't present combined project/membership states.
parent 3a9f0a60
......@@ -278,7 +278,7 @@ class UserProjectApplicationsTable(UserTable):
def render_membership_status(self, record, *args, **kwargs):
if self.user.owns_application(record):
if self.user.owns_application(record) or self.user.is_project_admin():
return record.project_state_display()
else:
try:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment