mirror of
https://github.com/opelly27/WinStudentGoalTracker.git
synced 2026-05-20 01:47:41 +00:00
debug
This commit is contained in:
@@ -154,12 +154,12 @@ public class StudentController : BaseController
|
||||
});
|
||||
}
|
||||
|
||||
if (!PermissionService.IsAllowed(role, EntityType.Goal, PermissionAction.Create))
|
||||
if (!PermissionService.IsAllowed(role, EntityType.Goal, PermissionAction.Create, isMine: true))
|
||||
{
|
||||
return BadRequest(new ResponseResult<StudentGoalItem>
|
||||
{
|
||||
Success = false,
|
||||
Message = "Unable to create goal."
|
||||
Message = "Unable to create goal. - Permission Matrix"
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user