[farcry-dev] "You have been denied access to this item" - but why?

3 views
Skip to first unread message

Phil Kemp

unread,
Nov 23, 2009, 8:46:34 AM11/23/09
to farcr...@googlegroups.com

Greetings,

I've got two custom types that are linked together in an Array table. In the
object admin page script at
/farcry/projects/xx/customadmin/customlists/dmVideo.cfm I have added the
code:



> aCustomColumns = arrayNew(1);
> aCustomColumns[1] = structNew();
> aCustomColumns[1].webskin = "showMission.cfm";
> aCustomColumns[1].title = "Mission";
> aCustomColumns[1].sortable = false;
> aCustomColumns[1].property = "label";
>

The showMission file is in the right place - webskin/dmVideo/showMission.cfm
but for this column I get the message You have been denied access to this
item instead of my output. The code from this file is



> <cfquery name="qMissions" datasource="#application.dsn#">
> SELECT DISTINCT label
> FROM dmmission_avideos
> LEFT JOIN dmmission ON parentid = objectid
> WHERE data = <cfqueryparam value="#stObj.objectId#" />
> </cfquery>
> <cfoutput>#qMissions.label#</cfoutput>
>

So, why am I getting denied? I don't want to give out rights to the user in
question as they are only allowed to do a couple of things. Do I need to set
up something in the role's webskin - if so, what?

Cheers
Phil

-----
I got bored, so... http://philkemp.white.prohosting.com/farcry/
http://philkemp.white.prohosting.com/farcry/
--
View this message in context: http://old.nabble.com/%22You-have-been-denied-access-to-this-item%22---but-why--tp26478298s621p26478298.html
Sent from the FarCry - Dev mailing list archive at Nabble.com.

Tomek Kott

unread,
Nov 23, 2009, 9:02:14 AM11/23/09
to farcr...@googlegroups.com
under the user's role, you probably need to edit the webskin portion to include: dmVideo.showMission

That should get the job done...


--
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcr...@googlegroups.com
To unsubscribe, email: farcry-dev+...@googlegroups.com
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry

Phil Kemp

unread,
Nov 23, 2009, 9:09:41 AM11/23/09
to farcr...@googlegroups.com

Bingo, cheers Tomek. It was just that final step that was needed.


Tomek Kott wrote:
>
> under the user's role, you probably need to edit the webskin portion to
> include: dmVideo.showMission
>
> That should get the job done...
>


View this message in context: http://old.nabble.com/%22You-have-been-denied-access-to-this-item%22---but-why--tp26478298s621p26478697.html

Phil Kemp

unread,
Nov 23, 2009, 11:07:06 AM11/23/09
to farcr...@googlegroups.com

I've now given the user the rights to edit another content type. The Edit
option appears in their dropdown list, but again I'm being given this
"DENIED" message, and no reason why. I'll be suggesting a reason message as
an improvement, but in the meantime does anyone know how I can get the user
to edit this second content type?

Cheers
View this message in context: http://old.nabble.com/%22You-have-been-denied-access-to-this-item%22---but-why--tp26478298s621p26480872.html

Tomek Kott

unread,
Nov 23, 2009, 11:47:26 AM11/23/09
to farcr...@googlegroups.com
all i can suggest is to go through the roles that the user is attached to, go through the allowed webskins for that role, see which webskin you are trying to pull up (is it a custom one, for example?) and see which webskin they are not being allowed to see.

If they have the drop down menu, it means the farcry security has checked to make sure they have edit permissions on the type. This does not necessarily mean they have access to the webskin you are trying to load.

Tomek

Reply all
Reply to author
Forward
0 new messages