Skip to content

Commit

Permalink
add lyrics manager role
Browse files Browse the repository at this point in the history
  • Loading branch information
kkuepper committed Nov 12, 2024
1 parent d773b7e commit 28fa6f2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
6 changes: 4 additions & 2 deletions admin/app/scripts/controllers/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ angular.module('bmmApp')
ROLE_CONTRIBUTOR_MANAGER: false,
ROLE_FEATURE_PREVIEW: false,
ROLE_LIVE_MANAGER: false,
ROLE_FRAKAARE_DASHBOARD: false
ROLE_FRAKAARE_DASHBOARD: false,
ROLE_LYRICS_MANAGER: false
};

$.each(this.roles, function() {
Expand Down Expand Up @@ -89,7 +90,8 @@ angular.module('bmmApp')
ROLE_CONTRIBUTOR_MANAGER: false,
ROLE_FEATURE_PREVIEW: false,
ROLE_LIVE_MANAGER: false,
ROLE_FRAKAARE_DASHBOARD: false
ROLE_FRAKAARE_DASHBOARD: false,
ROLE_LYRICS_MANAGER: false
};

$.each(this.roles, function() {
Expand Down
8 changes: 8 additions & 0 deletions admin/app/views/pages/users.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ <h4>{{init.translation.page.contributors.search}}</h4>
<th>{{init.translation.page.users.featurePreview}}</th>
<th>Fra Kåre Dashboard</th>
<th>{{init.translation.page.users.liveManager}}</th>
<th>Lyrics Manager</th>
<th>{{init.translation.page.users.allRights}}</th>
</tr>
<tr ng-repeat="user in searchResults">
Expand Down Expand Up @@ -63,6 +64,9 @@ <h4>{{init.translation.page.contributors.search}}</h4>
<td>
<input type="checkbox" ng-model="user.perm.ROLE_LIVE_MANAGER" ng-change="updateUser(user, true)">
</td>
<td>
<input type="checkbox" ng-model="user.perm.ROLE_LYRICS_MANAGER" ng-change="updateUser(user, true)">
</td>
<td>
<input type="checkbox" ng-model="user.perm.ROLE_ADMINISTRATOR" ng-change="updateUser(user, true)">
</td>
Expand Down Expand Up @@ -103,6 +107,7 @@ <h3>{{init.translation.page.users.adminUsers}}</h3>
<th>{{init.translation.page.users.featurePreview}}</th>
<th>Fra Kåre Dashboard</th>
<th>{{init.translation.page.users.liveManager}}</th>
<th>Lyrics Manager</th>
<th>{{init.translation.page.users.allRights}}</th>
</tr>
<tr ng-repeat="user in users">
Expand Down Expand Up @@ -145,6 +150,9 @@ <h3>{{init.translation.page.users.adminUsers}}</h3>
<td>
<input type="checkbox" ng-model="user.perm.ROLE_LIVE_MANAGER" ng-change="updateUser(user)">
</td>
<td>
<input type="checkbox" ng-model="user.perm.ROLE_LYRICS_MANAGER" ng-change="updateUser(user)">
</td>
<td>
<input type="checkbox" ng-model="user.perm.ROLE_ADMINISTRATOR" ng-change="updateUser(user)">
</td>
Expand Down

0 comments on commit 28fa6f2

Please sign in to comment.