DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Issue in ResourceManager after upgrading from 9.13.9 to 10.1.2

 1 Replies
 1 Subscribed to this topic
 33 Subscribed to this forum
Sort:
Author
Messages
New Around Here
Posts: 19
New Around Here
New Poster
New Poster
Congrats on posting!

Team,

We are not able to give permission to a secure folder in resource manager by roles other than "Administrators". We have custom role in our application and have exposed Resource Manager to manage content of the application. But after upgrading from 9.13.9 to 10.2.1, on trying to give permission to a folder getting follwoing error: "Error: Unauthorized". It is failing on call of this api -> Items/GetRoleGroups

In ItemsController.cs I can see following line which is giving this error:

 [HttpGet]
        [ValidateAntiForgeryToken]
        public IHttpActionResult GetRoleGroups()
        {
            if (!this.UserInfo.IsInRole(this.PortalSettings.AdministratorRoleName))
            {
                return this.Unauthorized();
            }

            var groups = RoleController.GetRoleGroups(this.roleProvider, this.PortalSettings.PortalId)
                            .Cast()
                            .Select(RoleGroupDto.FromRoleGroupInfo);

            return this.Ok(groups);
        }

This functionality was earlier working in 9.13.9, is this intentional change? Also I failed to understand why this check was not in other API calls in this file? I think this is independent module and we should use module permission to identify if any such security check is required.

Can you please look into it urgently.

Regards,

Alok

Veteran Member
Posts: 349
Veteran Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
MVP
MVP
You're an MVP!
Engaged Reader
Engaged Reader
You are an engaged reader!
Avid Reader
Avid Reader
Avid Reader art thou!
That code has not changed in 4 years, it probably is something deeper in what this code calls and will need some investigation.

You can create an issue at https://github.com/dnnsof.../Dnn.Platform/issues but as for the urgency, keep in mind this is a free open-source product maintained by unpaid contributors.

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

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

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. 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.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved