head	1.2;
access;
symbols
	TIGRIS_1_1_0RC2:1.1.2.1
	TIGRIS_1_1_0RC1:1.1.2.1
	TIGRIS_1_1:1.1.2.1.0.2
	TIGRIS_1_0_8:1.1.2.1
	TIGRIS_1_0_8RC3:1.1.2.1
	TIGRIS_1_0_8RC2:1.1.2.1
	TIGRIS_1_0_8RC1:1.1.2.1
	TIGRIS_1_0_7:1.1.2.1
	TIGRIS_1_0_7RC3:1.1.2.1
	TIGRIS_1_0_7RC2:1.1.2.1
	TIGRIS_1_0_7RC1:1.1.2.1
	TIGRIS_1_0_6:1.1.2.1
	TIGRIS_1_0_6RC5:1.1.2.1
	TIGRIS_1_0_6RC4:1.1.2.1
	TIGRIS_1_0_6RC3:1.1.2.1
	TIGRIS_1_0_6RC2:1.1.2.1
	TIGRIS_1_0_6RC1:1.1.2.1
	TIGRIS_1_0_5:1.1.2.1
	TIGRIS_1_0_5RC6:1.1.2.1
	TIGRIS_1_0_5RC5:1.1.2.1
	TIGRIS_1_0_5RC4:1.1.2.1
	TIGRIS_1_0_5RC3:1.1.2.1
	TIGRIS_1_0_5RC2:1.1.2.1
	TIGRIS_1_0_5RC1:1.1.2.1
	TIGRIS_1_0_4:1.1.2.1
	TIGRIS_1_0_3:1.1.2.1
	TIGRIS_1_0_2:1.1.2.1
	TIGRIS_1_0_1:1.1.2.1
	TIGRIS_1_0:1.1.2.1.0.4
	TIGRIS_1_0_0:1.1.2.1
	TIGRIS_1_0_0_RC1:1.1.0.2;
locks; strict;
comment	@# @;


1.2
date	2001.04.06.01.18.18;	author leonardr;	state Exp;
branches;
next	1.1;

1.1
date	2001.03.16.07.45.13;	author davidp;	state Exp;
branches
	1.1.2.1;
next	;

1.1.2.1
date	2001.04.06.01.25.16;	author dlr;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Guest needs to have Content Viewer role on the www project.
@
text
@#New roles.
create table xxxx_populate_UserRoleProject
(
        USER_LOGIN    varchar(32) NOT NULL,
        ROLE_NAME     varchar(99) NOT NULL,
        PROJECT_NAME  varchar(64) NOT NULL,
        APPROVED_BY   varchar(32)
);

insert into xxxx_populate_UserRoleProject (USER_LOGIN, ROLE_NAME, PROJECT_NAME, APPROVED_BY)
       values 
            ("root", "Click-through Viewer","**All projects on host", "root")
            , ("guest", "Content Viewer","www", "root")
;

insert into HELM_USER_ROLE_PROJECT (USER_ID, ROLE_ID, PROJECT_ID, APPROVED_BY)
       select distinct User.USER_ID, Role.ROLE_ID, Project.PROJECT_ID, Approved.USER_ID
         from xxxx_populate_UserRoleProject as Tmp,
              HELM_USER as User,
              HELM_ROLE as Role,
              HELM_PROJECT as Project,
              HELM_USER as Approved
        where Tmp.USER_LOGIN   = User.LOGIN_NAME
          and Tmp.ROLE_NAME    = Role.NAME
          and Tmp.PROJECT_NAME = Project.NAME
          and Tmp.APPROVED_BY  = Approved.LOGIN_NAME
;


@


1.1
log
@First pass, untested.  Commiting now to allow others to edit.
@
text
@d13 1
@


1.1.2.1
log
@Merged in leonardr bug fix from HEAD:

Guest needs to have Content Viewer role on the www project.
@
text
@a12 1
            , ("guest", "Content Viewer","www", "root")
@


