Skip to content

Commit 034e137

Browse files
authored
Merge pull request #3093 from TechnologyEnhancedLearning/Develop/Fixes/TD-4169-FrameworkContributorPermissionNotWorking
TD-4169 Framework Contributor Permission Not Working
2 parents a51a950 + a20cd7a commit 034e137

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DigitalLearningSolutions.Data/DataServices/FrameworkDataService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1827,7 +1827,7 @@ public int GetAdminUserRoleForFrameworkId(int adminId, int frameworkId)
18271827
@"SELECT CASE WHEN FW.OwnerAdminID = @adminId THEN 3 WHEN fwc.CanModify = 1 THEN 2 WHEN fwc.CanModify = 0 THEN 1 ELSE 0 END AS UserRole
18281828
FROM Frameworks AS FW LEFT OUTER JOIN
18291829
FrameworkCollaborators AS fwc ON fwc.FrameworkID = FW.ID AND fwc.AdminID = @adminId
1830-
WHERE FW.ID = @frameworkId",
1830+
WHERE FW.ID = @frameworkId and FWC.IsDeleted=0",
18311831
new { adminId, frameworkId }
18321832
);
18331833
}

0 commit comments

Comments
 (0)