Browse Source

[AuthToken(Roles = "student,teacher")]

CrazyIter_Bin 3 years ago
parent
commit
a5e15fc9b1
1 changed files with 1 additions and 2 deletions
  1. 1 2
      TEAMModelOS/Controllers/School/StudentController.cs

+ 1 - 2
TEAMModelOS/Controllers/School/StudentController.cs

@@ -2109,9 +2109,8 @@ namespace TEAMModelOS.Controllers
         }
         //TODO 此API需處理對應前端返回的相關數據
         [ProducesDefaultResponseType]
-        [AuthToken(Roles = "student")]
+        [AuthToken(Roles = "student,teacher")]
         [HttpPost("get-school-info")]
-
         public async Task<IActionResult> GetSchoolInfo(JsonElement request)
         {
             try