admin controller for the wiki testing
This commit is contained in:
@@ -430,7 +430,11 @@ class AdminController extends Controller
|
||||
return redirect('/admin/dashboard/wiki')->with('success', 'Added new user group.');
|
||||
}
|
||||
|
||||
public function purgeWikiUsers() {
|
||||
public function purgeWikiUsers(Request $request) {
|
||||
$this->validate($request, [
|
||||
'admin' => 'required',
|
||||
]);
|
||||
|
||||
//Declare helper classes
|
||||
$lookup = new LookupHelper;
|
||||
$wikiHelper = new WikiHelper;
|
||||
|
||||
@@ -111,7 +111,7 @@
|
||||
<h2>Purge Wiki</h2>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
{!! Form::open(['action' => 'Dashboard\AdminController@purgeUsers', 'method' => 'POST']) !!}
|
||||
{!! Form::open(['action' => 'Dashboard\AdminController@purgeWikiUsers', 'method' => 'POST']) !!}
|
||||
<div class="form-group">
|
||||
{{ Form::label('admin', 'This action will log the administrator who peformed the action.') }}
|
||||
{{ Form::hidden('admin', auth()->user()->character_id) }}
|
||||
|
||||
Reference in New Issue
Block a user