Last post May 04, 2005 11:23 AM by webdoc90
Apr 07, 2005 04:27 AM|ronaldsoccer|LINK
I want to add access control to modules and I know I have to do something with "PortalCfg.xsd" and "PortalCfd.cs". I added an attribute called "AccessRoles" to "Module" element. I don't know what to do next. Can anyone give me any hints? or tell me references?
Apr 07, 2005 05:58 AM|webber123456|LINK
Apr 07, 2005 11:27 PM|ronaldsoccer|LINK
Modules DO NOT have access control built in. Only Tab levels have access control built in.
Modules has "Roles that can edit content: ", but not an access control.
To me, access control means "viewable".
Apr 26, 2005 09:49 PM|tstanley|LINK
I am hoping to do the same thing... add an AccessRole attribute to the Module element. I think the change to the XML structure and data is trivial, but the change to the PortalCfg.cs file is complex, as this is the code that stores the read XML file into
a custom contructed DataSet, which will now need a new field. Then, the module loading code will need to determine the role status of the user and abort that particular module as needed. Oh, and then the module admin page will need a way to assign roles
to each module added to the page. It'll be a lot of work. Any ideas or help from the experts would be appreciated greatly.
Apr 27, 2005 01:27 AM|webber123456|LINK
Apr 27, 2005 03:23 PM|tstanley|LINK
Apr 27, 2005 05:16 PM|webber123456|LINK
Apr 29, 2005 12:15 PM|tstanley|LINK
OK, you have Page H that contains Modules 1, 2, and 3. Module 1 is a frequently updated announcements module that is meant for all users. Module 2 is only for User A and Module 3 is for User B. So we want to display only Module 1 at the time of signon,
and then either Module 2 or Module 3 dependent on whether User A or B signs on. With page level access control only, you would have to create Page H that contains only Module 1 for signon, and Page J that contains Modules 1 and 2 that only User A
has page access to, and Page K that contains Modules 1 and 3 for User B. This would work except that to maintain the content on Module 1, you would need to edit it in
each of three pages. I would be very pleased to find out that I am mistaken in this logic if someone would show me how to accomplish what I want without module level access control. Thanks!
Apr 29, 2005 02:52 PM|webber123456|LINK
May 03, 2005 10:44 AM|scrapetoe|LINK
May 04, 2005 11:23 AM|webdoc90|LINK
Ronaldsoccer, if you find the answer to this question please pass it on as I would like to do the same thing. I've seen on snowcovered.com that someone did write a C# module for this purpose but has not responded to my emails so I suspect no support. This
is a very important feature as too many tabs across the top of the screen has become an issue.