Products

Solutions

Learn More

Partners

Community

Blog

About

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 ...Limited Persona Bar for AdministratorsLimited Persona Bar for Administrators
Previous
 
Next
New Post
5/22/2018 9:01 PM
 

We recently upgraded a client's DNN site to version 9.2.  The site was originally installed with version 5.x and has been upgraded several times throughout the years.

The host account has a full PersonaBar and everything works fine when logged in as host.  The administrator account's PersonaBar only contains the wrenches icon and Site Assets is the only choice in that flyout.

How can we grant access to the rest of the administration functions for Administrators.  We have created additional admin accounts and they are all similarly limited.

I have compared web config and DLLs with other 9.2 sites that work fine and have not found any issues.  I am guessing there is a database issue, but I am not sure where to look.

 
New Post
5/23/2018 6:06 PM
 

I found (and fixed) the problem.

The PersonaBarMenuPermissions table only had 14 rows.  I couldn't do a direct import from another database because the roleIds did not line up.

 

Here's the query I wrote to fix the problem which uses a clean DNN 9.2 install as a template to determine which permissions are missing.

 

insert into BrokenDNNSite.dbo.PersonaBarMenuPermission
(
   PortalId
  ,MenuId
  ,PermissionId
  ,AllowAccess
  ,RoleID
  ,UserId
  ,CreatedByUserId
  ,CreatedOnDate
  ,LastModifiedByUserID
  ,LastModifiedOnDate
)
Select
   0 PortalId
  ,pbm.MenuId
  ,pbp.PermissionId
  ,1 AllowAccess
  ,r.RoleID
  ,NULL UserId
  ,1 CreatedByUserId
  ,'2018-05-23 09:46:45.547' CreatedOnDate
  ,1 LastModifiedByUserID
  ,'2018-05-23 09:46:45.547' LastModifiedOnDate
  --,pbm.ModuleName
  --,r.RoleName
  --,pbp.PermissionKey
from 
  CleanDNN92Site.dbo.PersonaBarMenuPermission pbmp
    join CleanDNN92Site.dbo.PersonaBarPermission Dpbp on Dpbp.PermissionId = pbmp.PermissionId
    join CleanDNN92Site.dbo.PersonaBarMenu Dpbm on Dpbm.menuid = pbmp.menuid
    join CleanDNN92Site.dbo.Roles Dr on Dr.RoleId = pbmp.RoleID

    join BrokenDNNSite.dbo.PersonaBarPermission pbp on pbp.PermissionKey = Dpbp.PermissionKey
    join BrokenDNNSite.dbo.PersonaBarMenu pbm on pbm.ModuleName = Dpbm.ModuleName
    join BrokenDNNSite.dbo.Roles r on r.RoleName = Dr.RoleName
Except
--Intersect
Select
   PortalId
  ,MenuId
  ,PermissionId
  ,AllowAccess
  ,RoleID
  ,UserId
  ,1 CreatedByUserId
  ,'2018-05-23 09:46:45.547' CreatedOnDate
  ,1 LastModifiedByUserID
  ,'2018-05-23 09:46:45.547' LastModifiedOnDate
From
  BrokenDNNSite.dbo.PersonaBarMenuPermission
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Limited Persona Bar for AdministratorsLimited Persona Bar for Administrators


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.

Content Layout

Subscribe to DNN Digest

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  

What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out