-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#77 Fixed issues with permissions for users. Added actions on users.
Intended permissions are now functional. Just need to add more things to do for the Admin (delete the team, for example). Remove user function doesn't work either yet, plus there needs to be a leave team option. Refactored the role definitions and put them in keystoneguru.php.
- Loading branch information
Showing
11 changed files
with
167 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -295,8 +295,6 @@ class DungeonrouteTable extends InlineCode { | |
}); | ||
} | ||
|
||
console.log(columns); | ||
|
||
return columns; | ||
} | ||
|
||
|
11 changes: 4 additions & 7 deletions
11
resources/assets/js/handlebars/team_member_table_actions_template.handlebars
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
<select class="form-control selectpicker role_selection" data-username="{{username}}"> | ||
{{#roles}} | ||
{{#select role}} | ||
<option value="{{name}}" data-icon="fas {{icon}}">{{label}}</option> | ||
{{/select}} | ||
{{/roles}} | ||
</select> | ||
<button class="btn btn-danger"> | ||
<span class="d-xl-none"><i class="fas fa-user-minus"></i></span> | ||
<span class="d-none d-xl-block"><i class="fas fa-user-minus"></i> {{remove_label}}</span> | ||
</button> |
1 change: 1 addition & 0 deletions
1
resources/assets/js/handlebars/team_member_table_permissions_self_template.handlebars
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<i class="fas {{icon}}"></i> {{label}} |
7 changes: 7 additions & 0 deletions
7
resources/assets/js/handlebars/team_member_table_permissions_template.handlebars
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<select class="form-control selectpicker role_selection" data-username="{{username}}"> | ||
{{#select role}} | ||
{{#roles}} | ||
<option value="{{name}}" data-icon="fas {{icon}}">{{label}}</option> | ||
{{/roles}} | ||
{{/select}} | ||
</select> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.