J
Joey
We are using location tags to control access to certain folders in our
website. That has worked great. But now we need to be able to allow
the customers to change the role names through the website interface.
I have handled all needed changes in the code, except for one.
In web.config we have access controlled with a line like...
<allow roles="Administrators">
In my code I have a static Website class that keeps track of the
current Administrators role name, no matter what they name it. I
access it with something like
"Website.AdministratorsSystemRoleNumber". But I can't do that in
web.config. And if I can't do that, then how can I control the access?
I do not want to add another attribute (i.e. user-specified role name,
etc..) to my security roles table. I just want to figure out how to
use what we already have, which is one table with two attributes: int
RoleId and nvarchar(25) Name.
Any help is appreciated.
JP
website. That has worked great. But now we need to be able to allow
the customers to change the role names through the website interface.
I have handled all needed changes in the code, except for one.
In web.config we have access controlled with a line like...
<allow roles="Administrators">
In my code I have a static Website class that keeps track of the
current Administrators role name, no matter what they name it. I
access it with something like
"Website.AdministratorsSystemRoleNumber". But I can't do that in
web.config. And if I can't do that, then how can I control the access?
I do not want to add another attribute (i.e. user-specified role name,
etc..) to my security roles table. I just want to figure out how to
use what we already have, which is one table with two attributes: int
RoleId and nvarchar(25) Name.
Any help is appreciated.
JP