diff --git a/handlers/role.go b/handlers/role.go index ab5c4776..9686d894 100644 --- a/handlers/role.go +++ b/handlers/role.go @@ -26,7 +26,8 @@ var ( }, "participant": map[string][]int{ - "Response": []int{PermissionUpdate}, + "Participant": []int{PermissionRead}, + "Response": []int{PermissionUpdate}, }, "subscriber": map[string][]int{ diff --git a/templates/participants_show.html.tpl b/templates/participants_show.html.tpl index a27bea7e..1a8f6aa5 100644 --- a/templates/participants_show.html.tpl +++ b/templates/participants_show.html.tpl @@ -1,20 +1,23 @@ {{ define "content" }} -{{$isAdmin := .Claims|isAdmin}} +{{$isAdmin := .Claims|isAdmin}} {{$isSchool := .Claims|isSchool}} +{{$isParticipant := .Claims|isParticipant}}
{{.Data.User.Username}}
{{.Data.User.Password}}