Skip to content

Link to admin interface for staff users. Closes #529#582

Merged
regulartim merged 2 commits intodevelopfrom
link_to_admin_interface
Oct 3, 2025
Merged

Link to admin interface for staff users. Closes #529#582
regulartim merged 2 commits intodevelopfrom
link_to_admin_interface

Conversation

@regulartim
Copy link
Copy Markdown
Collaborator

Description

For non-superusers, the user menu in the top right corner does not show a link to the Django admin interface. However staff users should see it. So I just removed the restriction to only show it to superusers altogether. Partly because I don't know anything about JS. :D

Related issues

Closes #529

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue).
  • New feature (non-breaking change which adds functionality).
  • Breaking change (fix or feature that would cause existing functionality to not work as expected).

Checklist

  • I have read and understood the rules about how to Contribute to this project.
  • The pull request is for the branch develop.
  • I have added documentation of the new features.
  • Linters (Black, Flake, Isort) gave 0 errors. If you have correctly installed pre-commit, it does these checks and adjustments on your behalf.
  • I have added tests for the feature/bug I solved. All the tests (new and old ones) gave 0 errors.
  • If changes were made to an existing model/serializer/view, the docs were updated and regenerated (check CONTRIBUTE.md).
  • If the GUI has been modified:
    • I have a provided a screenshot of the result in the PR.
    • I have created new frontend tests for the new component or updated existing ones.

Important Rules

  • If you miss to compile the Checklist properly, your PR won't be reviewed by the maintainers.
  • If your changes decrease the overall tests coverage (you will know after the Codecov CI job is done), you should add the required tests to fix the problem
  • Everytime you make changes to the PR and you think the work is done, you should explicitly ask for a review. After being reviewed and received a "change request", you should explicitly ask for a review again once you have made the requested changes.
Screenshot 2025-10-03 at 11-16-27 GreedyBear

@regulartim regulartim merged commit edc9d5f into develop Oct 3, 2025
6 checks passed
@regulartim regulartim deleted the link_to_admin_interface branch October 3, 2025 10:16
regulartim added a commit that referenced this pull request Oct 3, 2025
* Include mass scanners in advanced API by default. Closes #580 (#581)

* Partly revert "added mass scanner exclusion as default"

This reverts commit f953887.

* adapt tests

* add "tor exit nodes" to default excludes

* add test case for tor exit node inclusion

* add test case for tor exit node inclusion (ii)

* fix syntax

* rename method

* Upgrade Django to 5.2. Closes #502 (#579)

* bump django-rest-email-auth

* bump django to 5.2

* bump postgres to 18
(this requires manual manual intervention when upgrading GreedyBear)

* Link to admin interface for staff users. Closes #529 (#582)

* remove restriction to only show link to superusers

* fix indentation

* bump 2.0.0

* adapt CI
anarghya-12 pushed a commit to anarghya-12/GreedyBear that referenced this pull request Feb 13, 2026
* Include mass scanners in advanced API by default. Closes intelowlproject#580 (intelowlproject#581)

* Partly revert "added mass scanner exclusion as default"

This reverts commit f953887.

* adapt tests

* add "tor exit nodes" to default excludes

* add test case for tor exit node inclusion

* add test case for tor exit node inclusion (ii)

* fix syntax

* rename method

* Upgrade Django to 5.2. Closes intelowlproject#502 (intelowlproject#579)

* bump django-rest-email-auth

* bump django to 5.2

* bump postgres to 18
(this requires manual manual intervention when upgrading GreedyBear)

* Link to admin interface for staff users. Closes intelowlproject#529 (intelowlproject#582)

* remove restriction to only show link to superusers

* fix indentation

* bump 2.0.0

* adapt CI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants