Micha Bayer wrote:
> Directory subDir = Directory.getNew(dc,dataDir);
> String fileName = uploadedFile.getFilename();
> String fileNameNoExt = fileName.substring(0, fileName.indexOf("."));
> subDir.setName(fileNameNoExt);
> subDir.checkPermission(Permission.CREATE);
Remove the call to subDir.checkPermission(). You don't get create
permissions until you call DbControl.saveItem() which also includes a
call to the checkPermission() method.
If you need to know if the user has permission to create directories
before actually creating and saving them you should use the
SessionControl.hasPermission() method.
/Nicklas
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
The BASE general discussion mailing list
[email protected]
unsubscribe: send a mail with subject "unsubscribe" to
[EMAIL PROTECTED]