Skip to content

Commit

Permalink
Change default permissions for some player relationships
Browse files Browse the repository at this point in the history
  • Loading branch information
slmnio committed Nov 13, 2024
1 parent 9047bac commit 854f228
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/src/actions/set-player-relationships.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import { dirtyID } from "../action-utils/action-utils.js";

function getPermissions(role) {
const permissions = {
"Match Editor": ["Producer", "Lobby Admin", "Commissioner", "Admin", "Event Director", "Tournament Director"]
"Broadcast Manager": ["Producer", "Commissioner", "Event Director", "Tournament Director"],
"Match Editor": ["Lobby Admin", "Admin", "Producer", "Commissioner", "Event Director", "Tournament Director"]
};

return Object.entries(permissions).filter(([permissionName, roles]) => roles.includes(role)).map(([permissionName, roles]) => permissionName) || [];

Check warning on line 9 in server/src/actions/set-player-relationships.js

View workflow job for this annotation

GitHub Actions / build (server)

'permissionName' is defined but never used

Check warning on line 9 in server/src/actions/set-player-relationships.js

View workflow job for this annotation

GitHub Actions / build (server)

'roles' is defined but never used
Expand Down

0 comments on commit 854f228

Please sign in to comment.