Skip to content

Commit 9c87e03

Browse files
committed
Repair the admin side add user functionality.
1 parent 921c7b1 commit 9c87e03

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

app/Http/Controllers/Admin/UserController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ public function postNew(Request $request)
122122
'name_first',
123123
'name_last',
124124
'username',
125+
'root_admin',
125126
]));
126127
Alert::success('Account has been successfully created.')->flash();
127128

resources/views/admin/users/new.blade.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,16 @@
6161
<input type="text" autocomplete="off" name="name_last" value="{{ old('name_last') }}" class="form-control" />
6262
</div>
6363
</div>
64+
<div class="form-group col-md-12">
65+
<label for="root_admin" class="control-label">{{ trans('strings.root_administrator') }}</label>
66+
<div>
67+
<select name="root_admin" class="form-control">
68+
<option value="0">{{ trans('strings.no') }}</option>
69+
<option value="1">{{ trans('strings.yes') }}</option>
70+
</select>
71+
<p class="text-muted"><small>Setting this to 'Yes' gives a user full administrative access.</small></p>
72+
</div>
73+
</div>
6474
</div>
6575
<div class="row">
6676
<div class="col-md-12">

0 commit comments

Comments
 (0)