You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// GET /api/categories?projectId=<id>&includeTasks=true
@@ -115,7 +114,7 @@ public IActionResult Create([FromBody] FlowModels.Category category)
115
114
116
115
varrequesterId=GetUserIdFromToken();
117
116
if(requesterId==null)returnUnauthorized(new{message="Invalid user token."});
118
-
if(!HasProjectEditPermission(category.ProjectId!,requesterId))returnForbid("You do not have permission to create a category for this project.");
117
+
if(!IsProjectTeamMember(category.ProjectId!,requesterId))returnStatusCode(403,new{message="You must be a team member of the project to create a category."});
if(requesterId==null)returnUnauthorized(new{message="Invalid user token."});
142
-
if(!HasProjectEditPermission(existing.ProjectId!,requesterId))returnForbid("You do not have permission to update this category.");
141
+
if(!IsProjectTeamMember(existing.ProjectId!,requesterId))returnStatusCode(403,new{message="You must be a team member of the project to update a category."});
0 commit comments