This is a migrated thread and some comments may be shown as answers.

Image Import Permissions

1 Answer 8 Views
Editor
This is a migrated thread and some comments may be shown as answers.
sree
Top achievements
Rank 1
sree asked on 24 Oct 2008, 08:24 AM
Hello,

I am using Editor in my application, We have many Organization in my application.
Below is my requirement.

1. All Images for an org is restricted, i.e., Images in one org cant be accessed by other org web pages.
2. I need to create, folder for each org, where as this folder is not accessible by other org context via, Telerik Editor.

Could you please tell me how to achieve this?

Thank you,
Sreedhar

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 27 Oct 2008, 02:27 PM
Hi Sree,

It is standard practice to have your users' IDs stored in a database of your CMS, and create a specific folder for each user when a user account is created. Then, when a user is logged and wishes to use the editor, setting the user's folder for this particular logged user is a matter of a single line of code, such as

  RadEditor1.ImageManager.ViewPaths = New String() {"~/Images/" + LOGGEDUSERID }

Thus each user will have access only to his/her folder, and be able to do whatever you let them do, without interfering with other users (and yes, if you have 100 users you will need to create 100 folders).

The only other way is for you to implement your own image manager with your own security and user authentication/authorization that handles your custom logic of determining and distinguishing what user uploaded what file, and what user has the right to delete what file.

Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
sree
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or