|
|
| New Topic Reply Subscription Options |
|
| Forums: CFFM: Problem with Readonly argument | |||
|
|||
| kharke
Joined: 04/12/11 Posts: 5 |
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. |
||
|
|||
| mboyte
Joined: 09/23/11 Posts: 1 |
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 |
||
|
|||
| kharke
Joined: 04/12/11 Posts: 5 |
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 |
|
| Subscription Options |
| Subscription options are available after you log in. |
There are 3 active user sessions right now.