Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

permission concept for links #78

Open
mawinter69 opened this issue Feb 15, 2024 · 1 comment
Open

permission concept for links #78

mawinter69 opened this issue Feb 15, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@mawinter69
Copy link
Contributor

What feature do you want to see added?

When adding links to jenkins itself those links might not work when the target requires admin permissions. So some links could be restricted to admins only
Another idea would be to add a new permission that grants the right to see the link. Then we could have 3 levels of access:
admin only
link permission
anyone

Upstream changes

No response

Are you interested in contributing this feature?

No response

@mawinter69 mawinter69 added the enhancement New feature or request label Feb 15, 2024
@biru-codeastromer
Copy link

Hey @mawinter69 Sir, can I work on this issue?

biru-codeastromer added a commit to biru-codeastromer/customizable-header-plugin that referenced this issue Jan 2, 2025
Fixes jenkinsci#78

Add permission concept for links to restrict access based on user roles.

* **CustomHeaderConfiguration.java**
  - Add a new permission `VIEW_LINK`.
  - Update the `getLinks` method to filter links based on user permissions.

* **AppNavLink.java**
  - Add a new field `permission`.
  - Update the constructor to include the `permission` field.
  - Update the `getLinkUrl` method to check for the `permission` field.

* **config.jelly**
  - Add a new entry for the `permission` field.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/jenkinsci/customizable-header-plugin/issues/78?shareId=XXXX-XXXX-XXXX-XXXX).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants