Skip to content

Commit

Permalink
lifetime patron for contend and broadcast teams
Browse files Browse the repository at this point in the history
per internal discussions
  • Loading branch information
Konstantina07 committed Sep 13, 2024
1 parent f816772 commit 3acc9d3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/controllers/Mod.scala
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,11 @@ final class Mod(
} >> {
Permission
.ofDbKeys(permissions)
.exists(p => p.grants(Permission.SeeReport) || p.grants(Permission.Developer))
.exists(p =>
p.grants(Permission.SeeReport) || p.grants(Permission.Developer) || p.grants(
Permission.ContentTeam
) || p.grants(Permission.BroadcastTeam)
)
.so(env.plan.api.setLifetime(user))
}).inject(Redirect(routes.Mod.permissions(user.username)).flashSuccess)
)
Expand Down

0 comments on commit 3acc9d3

Please sign in to comment.