Hook up Edit Project page
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
from atst.database import db
|
||||
from atst.domain.exceptions import NotFoundError
|
||||
from atst.models.project import Project
|
||||
from atst.domain.authz import Authorization
|
||||
from atst.domain.environments import Environments
|
||||
from atst.domain.exceptions import NotFoundError
|
||||
from atst.models.permissions import Permissions
|
||||
from atst.models.project import Project
|
||||
|
||||
|
||||
class Projects(object):
|
||||
@@ -19,7 +21,10 @@ class Projects(object):
|
||||
def get(cls, user, workspace, project_id):
|
||||
# TODO: this should check permission for this particular project
|
||||
Authorization.check_workspace_permission(
|
||||
user, workspace, Permissions.VIEW_APPLICATION_IN_WORKSPACE,
|
||||
user,
|
||||
workspace,
|
||||
Permissions.VIEW_APPLICATION_IN_WORKSPACE,
|
||||
"view project in workspace",
|
||||
)
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user