Let's assume I've got multi-user asp.net web application. There are 2 roles - admin and user. The users of application belong to different organizations. There is a folder with path "~/Reports" with below config file in it:
<system.web>
<authorization>
<allow roles="*"/>
</authorization>
</system.web>
In addition folder "Reports" has many subfolders in it, each corresponding to an organization. For example "~/Reports/Organization1" It is supposed that all the users with role "user" will upload their report files to subfolder in "~/Report" corresponding to their organization.
I've implemented the logic in code behind, but now I'm facing with an error like "Access denied for path ..Reports/Organization1" when the user of an Organization1 attempts to upload a file.
Is there any way to change config file above(in Reports) so that users get access to all the subfolders of "~/Reports"?
I would appreciate any help!