Skip to content

Commit

Permalink
remove PreviewCoach permission
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Feb 9, 2018
1 parent 92fa048 commit 40893c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/views/coach/show.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ <h1 class="@if(c.user.realNameOrUsername.size > 20) { large }">
}
</td>
</tr>
@if(ctx.me.??(c.coach.is) || isGranted(_.PreviewCoach)) {
@if(ctx.me.??(c.coach.is)) {
<tr class="edit">
<th>Admin</th>
<td>
Expand Down
5 changes: 2 additions & 3 deletions modules/security/src/main/Permission.scala
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ object Permission {
case object PublicMod extends Permission("ROLE_PUBLIC_MOD")
case object Developer extends Permission("ROLE_DEVELOPER")
case object Coach extends Permission("ROLE_COACH")
case object PreviewCoach extends Permission("ROLE_PREVIEW_COACH")
case object ModNote extends Permission("ROLE_MOD_NOTE")
case object RemoveRanking extends Permission("ROLE_REMOVE_RANKING")
case object ReportBan extends Permission("ROLE_REPORT_BAN")
Expand All @@ -63,7 +62,7 @@ object Permission {
Hunter, ModerateForum, IpBan, CloseAccount, ReopenAccount, ViewPrivateComms,
ChatTimeout, MarkTroll, SetTitle, SetEmail, ModerateQa, StreamConfig,
MessageAnyone, CloseTeam, TerminateTournament, ManageTournament, ManageEvent,
PreviewCoach, PracticeConfig, RemoveRanking, ReportBan, Beta, DisapproveCoachReview,
PracticeConfig, RemoveRanking, ReportBan, Beta, DisapproveCoachReview,
Relay, Streamers
))

Expand All @@ -75,7 +74,7 @@ object Permission {
Admin, Hunter, MarkTroll, ChatTimeout, ChangePermission, ViewBlurs, StaffForum, ModerateForum,
UserSpy, MarkEngine, MarkBooster, IpBan, ModerateQa, StreamConfig, PracticeConfig,
Beta, MessageAnyone, UserSearch, CloseTeam, TerminateTournament, ManageTournament, ManageEvent,
PublicMod, Developer, Coach, PreviewCoach, ModNote, RemoveRanking, ReportBan,
PublicMod, Developer, Coach, ModNote, RemoveRanking, ReportBan,
Relay, Cli, Settings, Streamers
)

Expand Down

0 comments on commit 40893c2

Please sign in to comment.