logging changes

This commit is contained in:
2019-05-18 14:46:19 -05:00
parent e9487fa58a
commit d56b6c1420
5 changed files with 13 additions and 7 deletions

View File

@@ -80,11 +80,18 @@ class AdminController extends Controller
}
/** Users & Permissions Pane */
$userArr = array();
$userArrs = array();
//Get the users from the database to allow a selection of users for various parts of the webpage
$users = User::pluck('name')->all();
//Get the available permissions from the database to allow a selection of permissions
$permissions = AvailableUserPermission::pluck('permission')->all();
//Create the user key value pairs
//For each user we need to build their username and permissions array into one array
/**
* Example: userArrs[0]['name'] = Minerva Arbosa
* userArrs[0]['permissions'] = ['admin', 'contract.admin', superuser]
*/
foreach($users as $key => $value) {
$user[$value] = $value;
}