Change the name of the get adminsitrator function to admin_user (it was easier to change it here than everywhere else."
This commit is contained in:
parent
93082a12f1
commit
9ea73e5eff
@ -26,8 +26,8 @@ class ldap_installer {
|
||||
access::allow($group, "view", $root);
|
||||
access::allow($group, "view_full", $root);
|
||||
}
|
||||
|
||||
$admin = identity::lookup_user_by_name("admin");
|
||||
// Let the admin own everything
|
||||
$admin = identity::admin_user();
|
||||
Database::instance()->query("UPDATE {items} SET owner_id = {$admin->id}");
|
||||
}
|
||||
|
||||
|
@ -54,7 +54,7 @@ class IdentityProvider_Ldap_Driver implements IdentityProvider_Driver {
|
||||
* @see IdentityProvider_Driver::admin_user.
|
||||
*/
|
||||
public function admin_user() {
|
||||
return self::lookup_user_by_name(self::$_params["admins"][0];);
|
||||
return self::lookup_user_by_name(self::$_params["admins"][0]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user