DNNCommunity / DNNCommunity/DNN.Links

GrantRoles table in edit Links

Open
#47 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C#
Stars
9
Forks
19
PR merge metrics
No merged PRs in 30d

Description

## Is your feature request related to a problem?
With the module in 'link' mode, if the main setting UsePermissions is setted to false, the EditLink page should not display the user role table, confusing users.

## Describe the solution you'd like
If UsePermissions is false, then the GrantRoles table should not be visible.
This code in the Page_Load of EditLinks.ascx.cs will make it
```
if (System.Convert.ToBoolean(Settings[Dnn.Links.SettingName.UsePermissions]) == false) {
plGrantRoles.Visible = false;
cblGrantRoles.Visible = false;
}
```

Contributor guide

Open the contributing guide

Research direction

EditLinks.ascx.cs and its Page_Load are named in the issue; start there by checking how UsePermissions is read and how plGrantRoles and cblGrantRoles are rendered. Done means the GrantRoles table is not visible on the EditLink page when UsePermissions is false, while it remains available when permissions are enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
frontend
Issue type
Feature
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.