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 ...Permissions on Portals created since upgrade to v05.06.01Permissions on Portals created since upgrade to v05.06.01
Previous
 
Next
New Post
2/9/2011 12:04 PM
 
Hi,

same is happening to me.
Moreover, the control panel becomes visible for everybody, when I log out of the portal.

I have already re-created the portal, but the problem reoccured after adding an new page.

Any idea how long it may take to fix this? If this will take long, I will have to go back to an older version of DNN.

Greetings,
Sabine
 
New Post
2/9/2011 12:39 PM
 
 
New Post
2/22/2011 4:35 PM
 
Hi all, I guess I got caught by this too. Anyone got any feeback if that update query worked ? And does PIVOT work on Express, I got a strange error testing it.... Interestingly If I export the site and import it, the error remains. I had a look at the permissions in the XML file and I guess I could edit things there before re-importing it, anyone think that is a good/bad idea ? This might sort the permissions but not sure if this might affect the padlocks being on All Users rather than Administrators in the page settings. (I don't really want to trash my new portal...) The home page works OK - and in the export file inside name="home", , View is true for admin and all Users, but edit is true for admin only. On the other pages edit is true for All Users, so presumably why we see the edit panel. Anyone think this might be a good plan? Also Stéphane you also mention 'create new portal using native language' - can you help how I can do that (if I have to)? On the portal I'm creating the new portal from the portal lang is EN-GB and US is disabled. Do you mean that if I switch that portal to US then create the new portal all will be OK? I have en-US in the localisation setting in the web-config so I guess that doesnt play a part. Someone once told me that US lang is hard-coded somewhere as the system language ..... Any help appreciated Thanks Rob
 
New Post
2/23/2011 5:51 AM
 

OK
Here's a manual step-by-step procedure to mend badly created Portal data when using another language, for those finding this later on. This is what I did anyway !

 

select portalid,administratorid,RegisteredRoleId from Portals

shows you the bad portal data. Your new/broken portal will have NULLs here (whcih is why padlocks in wrong place on settings permissions).

 

SELECT PortalID, [Administrators] as AdministratorRoleId, [Registered Users] as RegisteredRoleId  

FROM (SELECT PortalID, RoleID, RoleName from roles ) src

  PIVOT   (MIN(RoleID) FOR RoleName IN ([Administrators],[Registered Users]))pvt

shows you the RegisteredRoleID that the portals should have. Go back to the portals table and update the Portals table with the correct ID from RegisteredRoleID column.

(You might need to run EXEC sp_dbcmptlevel DBNAME, 90;  to allow PIVOT clause)

 

(this is effectively what the query from http://jingyangli.wordpress.com/2011/... does with typos corrected -

UPDATE  p  SET p.AdministratorRoleId=d.AdministratorRoleId,

  p.RegisteredRoleId =d.RegisteredRoleId FROM ( SELECT PortalID, [Administrators] as AdministratorRoleId, [Registered Users] as RegisteredRoleId  

FROM (SELECT PortalID, RoleID, RoleName from roles ) src

  PIVOT   (MIN(RoleID) FOR RoleName IN ([Administrators],[Registered Users]))pvt

)d  INNER JOIN  dbo.Portals p ON d.PortalID=p.PortalID

)

 

Now go to the users table and find the UserID of the admin user for the new portal that was created when you created the portal. Use this number to update the Portals table AdministratorID column which will be NULL.

 

So now the portals table has the correct entries in it for administratorID and registeredRoleID.

 

All we need to go now is to remove the ‘All Users’ permission from the edit tabs, so that the top panel isn’t shown when logged out:

DELETE FROM dbo.TabPermission  WHEREpermissionId=4 and RoleId=-1

Enjoy :)
Rob


 
New Post
2/24/2011 3:03 PM
 
Sorry EDIT to the above the first query should be
select portalid,administratorRoleid,RegisteredRoleId from Portals - and the bad ones will be -1 not NULL ...
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Permissions on Portals created since upgrade to v05.06.01Permissions on Portals created since upgrade to v05.06.01


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