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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Top Control PanelTop Control Panel
Previous
 
Next
New Post
4/25/2006 10:45 AM
 

There is a group which is not an admin but have edit rights on many pages. So when I login with this group and I go to pages on which it has edit rights, control panel starts appearing. This way I can add new pages as well. But I would like that group to only play with the content. When I try to remove the Edit rights on the page, module on it stops appearing and error is given that the user does not has right.

I think following line in Skins.vb in Init event is responsible for this:

If (PortalSecurity.IsInRoles(PortalSettings.AdministratorRoleName.ToString) = True Or PortalSecurity.IsInRoles(PortalSettings.ActiveTab.AdministratorRoles.ToString) = True) Then

Am I missing anything? How do I restrict the group so that control panel does not appear.

 
New Post
9/19/2006 11:51 AM
 
I'm having the same issue...
 
New Post
9/19/2006 12:03 PM
 

Ok, heres what you do:

 

You create a new project, copy the default controlpanel ascx from dnn to your project.

Include the app_resources folder.

rename your class, resolve the references. edit the page load near the bottem.

Have it detect when your user isinrole then make grey and disabled the icons you dont want functional

Heres what I do for Teachers

If PortalSecurity.IsInRole("Teacher") AndAlso ouser.IsSuperUser = False Then

'Me.imgAddTabIcon.ImageUrl = "~/Admin/ControlPanel/images/iconbar_addtab_bw.gif"

'cmdAddTab.Enabled = False

'cmdAddTabIcon.Enabled = False

imgEditTabIcon.ImageUrl = "~/Admin/ControlPanel/images/iconbar_edittab_bw.gif"

cmdEditTab.Enabled = False

cmdEditTabIcon.Enabled = False

imgDeleteTabIcon.ImageUrl = "~/Admin/ControlPanel/images/iconbar_deletetab_bw.gif"

cmdDeleteTab.Enabled = False

cmdDeleteTabIcon.Enabled = False

imgCopyTabIcon.ImageUrl = "~/Admin/ControlPanel/images/iconbar_copytab_bw.gif"

cmdCopyTab.Enabled = False

cmdCopyTabIcon.Enabled = False

'Else

ClientAPI.AddButtonConfirm(cmdDeleteTab, Services.Localization.Localization.GetString("DeleteTabConfirm", Me.LocalResourceFile))

ClientAPI.AddButtonConfirm(cmdDeleteTabIcon, Services.Localization.Localization.GetString("DeleteTabConfirm", Me.LocalResourceFile))

 

imgWizardIcon.ImageUrl = "~/Admin/ControlPanel/images/iconbar_wizard_bw.gif"

cmdWizard.Enabled = False

cmdWizardIcon.Enabled = False

imgSiteIcon.ImageUrl = "~/Admin/ControlPanel/images/iconbar_site_bw.gif"

cmdSite.Enabled = False

cmdSiteIcon.Enabled = False

imgUsersIcon.ImageUrl = "~/Admin/ControlPanel/images/iconbar_users_bw.gif"

cmdUsers.Enabled = False

cmdUsersIcon.Enabled = False

imgFilesIcon.ImageUrl = "~/Admin/ControlPanel/images/iconbar_files_bw.gif"

cmdFiles.Enabled = False

cmdFilesIcon.Enabled = False

End If

 

 

After all of this, you need to add a role to modulecontrols for the new panel and set your default panel in your host settings.

 


DotNetNuke Search Engine
ASP.Net Search Engine
Email me to add your favorite sites to the search List.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Top Control PanelTop Control Panel


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