Commit 1bbe37d8 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Set the quota for the admin/root users on install

parent b98874e6
......@@ -414,6 +414,7 @@ function core_install_defaults() {
$user->firstname = 'System';
$user->lastname = 'User';
$user->email = 'root@example.org';
$user->quota = get_config_plugin('artefact', 'file', 'defaultquota');
insert_record('usr', $user);
// Insert the admin user
......@@ -426,6 +427,7 @@ function core_install_defaults() {
$user->firstname = 'Admin';
$user->lastname = 'User';
$user->email = 'admin@example.org';
$user->quota = get_config_plugin('artefact', 'file', 'defaultquota');
$user->id = insert_record('usr', $user, 'id', true);
set_profile_field($user->id, 'email', $user->email);
set_profile_field($user->id, 'firstname', $user->firstname);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment