Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Custom courses module for universityCustom courses module for university
Previous
 
Next
New Post
10/14/2008 1:17 AM
 

Hi All

I am trying to develop a course(s) module in which i want edit rights to those users whom are assigned with a single or many courses ie not everyone having edit rights for that module can change any course. Any help would be appreciated

Regards,

Emad

 

 
New Post
10/19/2008 8:29 AM
 

Hi,

I had something simular and solved it quick and dirty by assigning roles in a settings dialogue for a specific instance (in this case a shop module) in an admin module (i have a shop admin module and a shop module). Read my question about that here: http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/111/threadid/261104/scope/posts/Default.aspx

I have this implemented by checking the roles a user is in and checking that with my custom shop permissions table.

     RoleController RC = new RoleController();
            ShopController SC = new ShopController();
            lstShop.Items.Clear();
            lstShop.Items.Add(new ListItem("...",""));
            foreach (ShopInfo SI in SC.GetShops(this.PortalId))
            {
                ShopPermissionController SPC = new ShopPermissionController();
                foreach (ShopPermissionInfo SPI in SPC.GetShopPermissionsByShop(SI.ShopId))
                {
                    if (this.UserInfo.IsInRole(RC.GetRole(SPI.RoleId, this.PortalId).RoleName))
                    {
                        lstShop.Items.Add(new ListItem(SI.ShopName, SI.ShopId));
                        break;
                    }
                }
            }

THis fills the dropdown box in the settings page of my shop module with the shops a user is allowed to edit. This is done with Roles. So what i currently do (it is not the most elegant solution) is add let's say 5 roles. And give the roles edit rights on the module but the role only sees the shops they areallowed to edit as set in the admin module settings.

HT

Alexander

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Custom courses module for universityCustom courses module for university


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out