summaryrefslogtreecommitdiff
path: root/modules/user.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-01-24 16:54:22 +0000
committerDries Buytaert <dries@buytaert.net>2004-01-24 16:54:22 +0000
commit8a913ffe7ceca9d3ef176ed466d4043d382443c9 (patch)
treef89c8f31bcfb561cf2744ee1e22a6657bcc8640d /modules/user.module
parentc20538fae872208a74a9d7910a2a6c4eab504a14 (diff)
downloadbrdo-8a913ffe7ceca9d3ef176ed466d4043d382443c9.tar.gz
brdo-8a913ffe7ceca9d3ef176ed466d4043d382443c9.tar.bz2
- Removed the 'Page not found' message after the initial install and removed
some old user module logic to install the initial role IDs.
Diffstat (limited to 'modules/user.module')
-rw-r--r--modules/user.module21
1 files changed, 0 insertions, 21 deletions
diff --git a/modules/user.module b/modules/user.module
index 2048c6685..68c2b6eb7 100644
--- a/modules/user.module
+++ b/modules/user.module
@@ -827,8 +827,6 @@ function user_register($edit = array()) {
$from = variable_get("site_mail", ini_get("sendmail_from"));
$pass = user_password();
- // create new user account, noting whether administrator approval is required
- user_role_init();
// TODO: is this necessary? Won't session_write replicate this?
unset($edit["session"]);
$account = user_save("", array_merge(array("name" => $edit["name"], "pass" => $pass, "init" => $edit["mail"], "mail" => $edit["mail"], "rid" => _user_authenticated_id(), "status" => (variable_get("user_register", 1) == 1 ? 1 : 0)), $data));
@@ -1497,29 +1495,11 @@ function user_admin_account() {
return theme("table", $header, $rows);
}
-function user_role_init() {
- $role = db_fetch_object(db_query("SELECT * FROM {role} WHERE name = 'anonymous user'"));
- if (!$role) {
- db_query("INSERT INTO {role} (name) VALUES ('anonymous user')");
- }
-
- $role = db_fetch_object(db_query("SELECT * FROM {role} WHERE name = 'authenticated user'"));
- if (!$role) {
- db_query("INSERT INTO {role} (name) VALUES ('authenticated user')");
- }
-}
-
function user_admin() {
$op = $_POST["op"];
$edit = $_POST["edit"];
if (user_access("administer users")) {
- /*
- ** Initialize all the roles and permissions:
- */
-
- user_role_init();
-
if (empty($op)) {
$op = arg(2);
}
@@ -1789,4 +1769,3 @@ function user_help_page() {
}
?>
-