Base security added: Access denied for everyone, admin has access everywhere by design (no need to assign groups to admin user)

bzr revid: jbaubort@wichside-20080714135301-apglvmybfjjqk9fi
This commit is contained in:
Jean-Baptiste Aubort
2008-07-14 15:53:01 +02:00
parent 866234acb1
commit 13cbbe29ea
6 changed files with 2642 additions and 2524 deletions
+7 -3
View File
@@ -156,9 +156,6 @@ CREATE TABLE res_users (
);
alter table res_users add constraint res_users_login_uniq unique (login);
insert into res_users (id,login,password,name,action_id,active) values (1,'root',NULL,'Root',NULL,False);
select setval('res_users_id_seq', 2);
CREATE TABLE res_groups (
id serial NOT NULL,
name varchar(32) NOT NULL,
@@ -336,3 +333,10 @@ CREATE TABLE ir_model_data (
res_id integer, primary key(id)
);
---------------------------------
-- Users
---------------------------------
insert into res_users (id,login,password,name,action_id,active) values (1,'root',NULL,'Root',NULL,False);
insert into res_users (id,login,password,name,action_id,active) values (2,'admin','admin','Administrator',NULL,True);
insert into ir_model_data (name,module,model,noupdate,res_id) values ('user_admin','base','res.users',True,2);
select setval('res_users_id_seq', 3);