// 2. user is an org editor AND has been granted admin permission for the dashboard
// 3. user is an org viewer AND has been granted edit permission for the dashboard
// 4. user is an org editor AND has no permissions for the dashboard
Convey("When user is org admin",func(){
loggedInUserScenarioWithRole("When calling GET on","GET","/api/dashboards/id/1/acl","/api/dashboards/id/:dashboardsId/acl",m.ROLE_ADMIN,func(sc*scenarioContext){
Convey("When user is editor and has admin permission in the ACL",func(){
Convey("When user is org editor and has admin permission in the ACL",func(){
loggedInUserScenarioWithRole("When calling GET on","GET","/api/dashboards/id/1/acl","/api/dashboards/id/:dashboardId/acl",m.ROLE_EDITOR,func(sc*scenarioContext){
Convey("When user is editor and has edit permission in the ACL",func(){
loggedInUserScenarioWithRole("When calling GET on","GET","/api/dashboards/id/1/acl","/api/dashboards/id/:dashboardId/acl",m.ROLE_EDITOR,func(sc*scenarioContext){
Convey("When user is org viewer and has edit permission in the ACL",func(){
loggedInUserScenarioWithRole("When calling GET on","GET","/api/dashboards/id/1/acl","/api/dashboards/id/:dashboardId/acl",m.ROLE_VIEWER,func(sc*scenarioContext){
Convey("When user is editor and not in the ACL",func(){
Convey("When user is org editor and not in the ACL",func(){
loggedInUserScenarioWithRole("When calling GET on","GET","/api/dashboards/id/1/acl","/api/dashboards/id/:dashboardsId/acl",m.ROLE_EDITOR,func(sc*scenarioContext){