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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...How to unlock the "All Users" role in module level settings in dnn modulesHow to unlock the "All Users" role in module level settings in dnn modules
Previous
 
Next
New Post
9/10/2010 12:03 AM
 
Vyom Dixit wrote:
Hi Matthias Schlomann,
                                               Again thanks for your reply. I found the difference in data in dbo.Portals table for the newly created portal and old existing portal.
There is "AdministratorId", "AdministratorRoleId" and "RegisteredRoleId" column values which having different values as "-1" in place of valid values.
And when i manually edited the values respectively, the newly created Portal's Page Level and Module level permission is now set properly. So, this is fine. But i want to ask about which is the correct way to resolve this bug? If you have any reference about it then please refer me.

I very much appreciated your response .

Thanks Again.
Vyom Dixit

 The issue shoud be fixed with DNN 5.5.0 but personaly I want wait untill 5.5.1 is out and first test it on a sandbox. Between to update it could also be fixed if you familar with SQL script via the SQL tasks feature on Host.

 
New Post
9/10/2010 5:22 AM
 
Vyom, you properly fixed the upgrade issues.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
9/10/2010 9:10 AM
Accepted Answer 
Hi Matthians & Sabestian,
                                                      Many thanks for your response. I got your attention. Well i fixed this "All Users" locked roles with running SQL script which asscoicate the administrator role and registered users role with it's respective portal in the database into dbo.Portals table. I used this sql to resolve the issue.
Here is my sql code:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
CREATE  procedure [dbo].[create_sp_updateportalsetting]
(
    @portalAliasName varchar(50),
    @uname varchar(100)
)
as
begin
    declare @portalID int
    set @portalID=(select [PortalID] from dbo.PortalAlias where [HTTPAlias] like '%'+@portalAliasName)
    declare @AdministratorId int,@AdministratorRoleId int,@RegisteredRoleId int
    set @AdministratorId=(select [UserID] from dbo.Users where UserName=@uname)
    set @AdministratorRoleId=(select [RoleID] from dbo.Roles where PortalID=@portalID and [RoleName]='Administrators')
    set @RegisteredRoleId=(select [RoleID] from dbo.Roles where PortalID=@portalID and [RoleName]='Registered Users')
    update
        dbo.Portals
    set
        [AdministratorId]=@AdministratorId,
        [AdministratorRoleId]=@AdministratorRoleId,
        [RegisteredRoleId]=@RegisteredRoleId
    Where
        [PortalID]=@portalID
end
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
to run this code : After importing the template file and when my new portal creates , then i run this procedure like this-
EXEC [dbo].[create_sp_updateportalsetting] <PortalAliasName>,<AssociatedAdminUserName>;


Thanks Again.
  Vyom Dixit
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...How to unlock the "All Users" role in module level settings in dnn modulesHow to unlock the "All Users" role in module level settings in dnn modules


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