|
@@ -137,7 +137,7 @@ describe "AuthorizationManager", ->
|
|
|
@AuthorizationManager.getPrivilegeLevelForProject @user_id, @project_id, (error) ->
|
|
@AuthorizationManager.getPrivilegeLevelForProject @user_id, @project_id, (error) ->
|
|
|
error.should.be.instanceof Errors.NotFoundError
|
|
error.should.be.instanceof Errors.NotFoundError
|
|
|
|
|
|
|
|
- describe "when the project id is not validssssssss", ->
|
|
|
|
|
|
|
+ describe "when the project id is not valid", ->
|
|
|
beforeEach ->
|
|
beforeEach ->
|
|
|
@AuthorizationManager.isUserSiteAdmin.withArgs(@user_id).yields(null, false)
|
|
@AuthorizationManager.isUserSiteAdmin.withArgs(@user_id).yields(null, false)
|
|
|
@CollaboratorsHandler.getMemberIdPrivilegeLevel
|
|
@CollaboratorsHandler.getMemberIdPrivilegeLevel
|