Fix bugs and write a test

This commit is contained in:
Montana
2018-09-21 14:44:32 -04:00
parent e12c1f42db
commit 3a978a1673
5 changed files with 54 additions and 21 deletions

View File

@@ -51,9 +51,9 @@ class Projects(object):
)
@classmethod
def get_all(cls, workspace_user, workspace):
def get_all(cls, user, workspace_user, workspace):
Authorization.check_workspace_permission(
workspace_user.user,
user,
workspace,
Permissions.VIEW_APPLICATION_IN_WORKSPACE,
"view project in workspace",