change authentication in an action

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2008 12:20 PM
Hi
I was trying to use Actions to move a file to a folder that require higher permission levels than permissions the user that executes the actions has.
So, How can I login as another user inside an action?. Otherwise, is it possible to execute an action as another user? (something like a "sudo").
The idea is that I have a folder where files are pushed to be approved, but nobody but the editor has access to that folder.
So, if I am a normal user and I want to publish a file, I import a file in a special folder (a "drop folder"), and that file is moved to the hidden folder ("waiting to be approved"). That user shouldn't be able to get the content of that hidden folder, so, to put a file in that folder I need to "login" as another user who can add files to it (or at least to get the permissions needed just for a couple of source lines).
Thanks
I was trying to use Actions to move a file to a folder that require higher permission levels than permissions the user that executes the actions has.
So, How can I login as another user inside an action?. Otherwise, is it possible to execute an action as another user? (something like a "sudo").
The idea is that I have a folder where files are pushed to be approved, but nobody but the editor has access to that folder.
So, if I am a normal user and I want to publish a file, I import a file in a special folder (a "drop folder"), and that file is moved to the hidden folder ("waiting to be approved"). That user shouldn't be able to get the content of that hidden folder, so, to put a file in that folder I need to "login" as another user who can add files to it (or at least to get the permissions needed just for a couple of source lines).
Thanks
Labels:
- Labels:
-
Archive
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2008 12:47 PM
done
I just added the authenticationComponent using action-services-context.xml (added the setter) and used it to login
Thanks for reading anyway!
I just added the authenticationComponent using action-services-context.xml (added the setter) and used it to login
Thanks for reading anyway!
