Thanks Chris. I really appreciate it.

Jeremy Taylor
http://www.Trilemetry.com
ICQ# 693130

----- Original Message -----
From: "Chris Carpenter" <[EMAIL PROTECTED]>
To: "Spectra-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, March 15, 2001 5:58 PM
Subject: Re: Spectra 1.5 Webtop Application drop down


>
> Hi Jeremy,
> We had the same problem here. We use Spectra 1.0.1 and could find no way
within the webtop to do this.
> In the end i changed some spectra code to get it to happen.
>
> If you want to do it, the file you need to change is called
"_preferences.cfm" ... located in  (for me)
inetpub/wwwroot/allaire/webtop/home/_preferences.cfm
>
> I just created a security group for each application, and made sure the
group name was exaclty the same as the application name.
> Then you put the users in to the right groups.
> Then i looped through the groups that the current user is a member of,
then deleted any applications from the list if they didnt match a group
name.
>
> Here is the code i used: (i put it just above the select box for the
applications.)
>
>
> <!--- New Code --->
> <!--- Deletes the Applications from the Sturcture that the user does not
have access to. --->
>
> <cfset DeleteThese = "">
> <cfset username = authenticatedUser()>
>      <cfloop collection="#stObjects#" item="ObjectID">
>          <cfscript>
>           stObjectData = stObjects[objectID];
>          </cfscript>
>           <cfa_userGet userDirectory="userDirectory" userName="#Username#"
r_stUser="r_stUser" r_stGroups="r_stGroups">
>           <Cfset GroupList = structKeyList(r_stGroups)>
>           <cfset ModGroupList = "">
>           <Cfloop list="#groupList#" index="g_List" delimiters=",">
>                <cfif len(g_list) GT 8>
> <!--- you will notice that i discard the first 7 letters of the group
name, this is because we name our groups with a 7
> letter string at the beggining that makes it easier to read. eg
RES_AP_RESTORNET for the restorenet application.  AP stands for
application.--->
>                     <cfset ModGroupList = ListAppend(ModGroupList,
Mid(g_list,8,evaluate(len(g_list) - 7)))>
>                </cfif>
>           </cfloop>
>           <cfif ListFindNoCase(ModGrouplist,stObjectData.Label, ",")>
>           <cfelse>
>                <cfset DeleteThese = ListAppend(DeleteThese, ObjectID)>
>           </cfif>
>      </cfloop>
>      <cfloop list="#DeleteThese#" index="DeleteThisOne">
>           <cfset temp = StructDelete(stObjects,deleteThisOne)>
>      </cfloop>
>  <!---    End New Code --->
>
> It is probably a good idea to make sure that everyine is in the right
application before you initiate this change, or any others you think of.
> Spectra remembers the last app that you were logged into, so if everyone
was in the right application when you initiate this change, it should all be
fine!
> Hope this helps.
> Chris Carpenter.
>
>
> ---------------------------------------- Message
History ----------------------------------------
>
>
> From: "Jeremy Taylor" <[EMAIL PROTECTED]> on 15/03/2001 16:08 PST
>
> Please respond to [EMAIL PROTECTED]
>
> To:   Spectra-Talk <[EMAIL PROTECTED]>
> cc:
> Subject:  Spectra 1.5 Webtop Application drop down
>
>
> Greetings,
> I'm trying to eliminate applications from the Application drop down in the
> webtop when a user logs in and doesn't have rights to those applications.
> I've found the docs that point at user, group, and site security, but
> nothing that talks about the Application drop down. Is what I'm trying to
do
> possible and if so, can someone point me in the right direction?
>
> Jeremy Taylor
> http://www.Trilemetry.com
> ICQ# 693130
>
> ----- Original Message -----
> From: "Michiel Boland" <[EMAIL PROTECTED]>
> To: "Spectra-Talk" <[EMAIL PROTECTED]>
> Sent: Thursday, March 15, 2001 11:50 AM
> Subject: RE: storing binary data in contentObjects
>
>
> > > > <cfa_handler object="this">
> > > >  <cffile action="readbinary" file="#sv#"
variable="this.filecontent">
> > > >  <cfa_contentobjectdata ...
> > >
> > > I'd imagine that this would be hugely inefficient, as the binary data
> would
> > > need to be converted to Base64 for persistent storage within WDDX,
which
> > > would then be stored within the database. You'd be much better off
> storing
> > > filesystem paths or pointers from a performance aspect.
> >
> > I am aware of the performance issues involved here. But my question
really
> > was: is this 'legal' in spectra terms.
> >
> > --
> > Michiel Boland <[EMAIL PROTECTED]>
> > Digital Valley Internet Professionals
> > Plantsoen 17, Wageningen, The Netherlands
> > Phone: +31 317 465555, Fax: +31 317 460276
> >
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to