Hi,
Is there a way to use personal userfile directories ? I need to allow access to images for users that are member of a suborganization, and in some cases even on a personal basis (each user gets its own directory).
The AccessControl feature is nice but mainly applies to roles. So I should create a unique role for every user, which is not a good practice. Besisdes that I see no way to add/remove AccessContol after initializing.
I think it would be nice to have an event or callback (serverside) that gives me a way to grant/deny access. As far as I can see there is no way to do so.
So what would be the best way to create personal (or grouped) userfile access ? By the way, I am using ASP.NET C#.
thanks !
Arjan
Is there a way to use personal userfile directories ? I need to allow access to images for users that are member of a suborganization, and in some cases even on a personal basis (each user gets its own directory).
The AccessControl feature is nice but mainly applies to roles. So I should create a unique role for every user, which is not a good practice. Besisdes that I see no way to add/remove AccessContol after initializing.
I think it would be nice to have an event or callback (serverside) that gives me a way to grant/deny access. As far as I can see there is no way to do so.
So what would be the best way to create personal (or grouped) userfile access ? By the way, I am using ASP.NET C#.
thanks !
Arjan
Re: Personal userfiles
Is there a better solution ?
How easy can this be implemented in other platforms ?
And finally how can I promote this to the offical release ?
My solution:
In both Config.cs and ConfigFile.cs added a (virtual) method:
In GetFoldersCommandHandler.cs added this line in the subdirectory loop (at line 60):
Then finally in the config.ascx, right next to the override of CheckAuthentication() I am able to do this:
Re: Personal userfiles
Now I wonder why some settings are by Session variables and others can be done by the config. And why is there a separate CheckAuthentication() method being called. Couldn't there be just a property "bool IsAthenticated" in the config ? Chances are small that the authentication is going to change in between the call to SetConfig() and the call to CheckAuthentication(). Or am I missing some fundamentals right here ?
Arjan
Re: Personal userfiles
I need to achieve EXACTLY the same behaviour.
The problem is that I'm creating CKFinder from PHP to integrating it with CKEditor.
I used this code:
Where should I add the SetConfig call... I didn't find it in the documentation.
I need the userfiles folder to looks something like userfiles/[user1login]/
I need the userfiles folder to looks something like userfiles/[user2login]/
I need the userfiles folder to looks something like userfiles/[user3login]/
Where userXlogin resides in a session variable.
I would greatly appreciate your help in this matter.
All best,
Will
Re: Personal userfiles SOLVED
I made it.
Just edited the config.php file in this way: