admin controller for the wiki dashboard

This commit is contained in:
2019-12-21 04:07:26 -06:00
parent 0cedb506c9
commit 523bbf013f

View File

@@ -329,9 +329,10 @@ class AdminController extends Controller
public function displayWikiDashboard() {
//Declare some variables
$wikiUsers = array();
$wikiGroups = array();
$tempUsers = DokuUser::all();
$wikiGroups = DokuGroupNames::all();
$tempGroups = DokuGroupNames::all();
$wikiMembership = DokuMember::all();
//Create a list of users based on id and name for the select form
@@ -339,6 +340,10 @@ class AdminController extends Controller
$wikiUsers[$temp->id] = $temp->name;
}
foreach($tempGroups as $temp) {
$wikiGroups[$temp->id] = $temp->gname;
}
return view('admin.dashboards.wiki')->with('wikiUsers', $wikiUsers)
->with('wikiGroups', $wikiGroups)
->with('wikiMembership', $wikiMembership);