The Coldfusion Open Source Forums
Home | ImageCFC | CFFM | BlogCFM | CFMBB | CFOpenMail / ImapCFC | CFOpenChat
Forums | Profile | Inbox | Members | Chat | Search | Login | RSS
Vivio Technologies VPS Hosting
New Topic Reply Subscription Options   Previous Page  Page: 1   Previous Page

Forums: CFFM: Problem with Readonly argument
Created on: 09/19/11 {ts '2013-05-18 12:55:00'} Views: 2190 Replies: 2
Problem with Readonly argument
Posted Monday, September 19, 2011 at {ts '2013-05-18 12:55:00'}

When I set the ReadOnly argument to "Yes", the CFFM application displays no files. In fact, nothing appears after it displays the working directory. This does not happen when I set ReadOnly to "No".

While a workaround is to set ReadOnly to "No", I would like to implement role-based restrictions for my intranet system so that only certain users can delete, upload, etc.

Please advise.
Karen Harker

RE: Problem with Readonly argument
Posted Friday, September 23, 2011 at {ts '2013-05-18 12:11:00'}

Serendipity at work here.

I too was trying to enable a role based scheme to cffm and ran into the exact same issue. Setting readOnly to Yes actually causes a javascript error (document.getElementById("fsRenameForm") is null). This error breaks the rest of cffm.js causing the blank page you see.

My solution for now and until someone has a better fix is to remove the

<cfif not cffm.readOnly>...</cfif> test at around line 1087. This will obviously fail if readOnly is set to yes and none of the formElements will be created. When I removed this cfif statement, I can see my directory structure but the ability to upload files is restricted as one would expect.

If a better soluition is available, please let me know.

Thanks,

Michael

RE: Problem with Readonly argument
Posted Friday, September 23, 2011 at {ts '2013-05-18 12:34:00'}

Thanks for the tip! It works good enough.

Karen

New Topic Reply Subscription Options   Previous Page  Page: 1   Previous Page
Subscription Options
Subscription options are available after you log in.

There are 3 active user sessions right now.