1
0

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:
Tim Almdal 2009-10-27 07:30:13 -07:00
parent 93082a12f1
commit 9ea73e5eff
2 changed files with 3 additions and 3 deletions

View File

@ -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}");
}

View File

@ -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]);
}
/**