diff --git a/app/permissions/auth.py b/app/permissions/auth.py index a7839cabfcdcb7381f00be096972ea992f148a5c..fd2d4d389175294e8d7b0e15b732ed6f253f7328 100644 --- a/app/permissions/auth.py +++ b/app/permissions/auth.py @@ -67,4 +67,4 @@ class AuthNeed(Permission): auth_need = AuthNeed() -standard_login_need = app_need #& auth_need +standard_login_need = app_need & auth_need diff --git a/app/views/project.py b/app/views/project.py index bd6ebae62cdd971b99f7c967cff85aa2d71044b9..3f090c3f06707bfee1ca1f78a03b1e3f0a14fb01 100644 --- a/app/views/project.py +++ b/app/views/project.py @@ -33,8 +33,8 @@ class ProjectView(UnprotectedRestView): need = app_need if form == 'salesforce': need &= RoleNeed('project_post_salesforce') - #else: - # need &= auth_need + else: + need &= auth_need with need: return super(ProjectView, self).post()