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

[#980] Medlemmer af SEK kan nu se alle afdelinger, foreninger + div objekter #1013

Conversation

mhewel
Copy link
Contributor

@mhewel mhewel commented Mar 29, 2024

Tilføjede rettigheder:
"view_all_unions": se alle foreninger.
"view_all_departments": Se alle afdelinger.
Rettede Aktiviteter, Invitation, Deltager, Afdelinger, Foreninger, Adresser til at bruge de nye rettigheder. SEK gruppen skal have to nye rettigheder

…bjekter.

Tilføjede rettigheder:
"view_all_unions":  se alle foreninger.
"view_all_departments": Se alle afdelinger.
Rettede Aktiviteter, Invitation, Deltager, Afdelinger, Foreninger, Adresser til at bruge de nye rettigheder.
SEK gruppen skal have to nye rettigheder
@mhewel mhewel linked an issue Mar 29, 2024 that may be closed by this pull request
Copy link

what-the-diff bot commented Mar 29, 2024

PR Summary

  • Enhanced Permission Checks Across Several Files
    The files activity_admin.py, activityinvite_admin.py, activityparticipant_admin.py, department_admin.py, and union_admin.py now have an additional condition. This condition will determine if the user has the newly defined permissions: members.view_all_departments or members.view_all_unions.

  • Implemented Database Migration For New Permissions
    A new database migration file, 0046_alter_department_options_alter_union_options.py, has been added. This migration updates the Department and Union models to possess two new permissions: view_all_departments and view_all_unions.

  • Improved Permission Checks in address.py
    An additional condition has been implemented in address.py. It checks if the user holds either of the new permissions: members.view_all_departments or members.view_all_unions.

  • Added Permissions Attribute in department.py and union.py
    The files department.py and union.py have been updated with a new permissions attribute. This attribute includes the permissions view_all_departments and view_all_unions respectively.

@mhewel mhewel changed the title Medlemmer af SEK kan nu se alle afdelinger,foreninger + div objekter [#980] Medlemmer af SEK kan nu se alle afdelinger, foreninger + div objekter Apr 7, 2024
@lakridserne lakridserne merged commit c3e50af into master Apr 7, 2024
5 checks passed
@lakridserne lakridserne deleted the 980-bugmedlemmer-af-sek-kan-ikke-se-data-ud-over-egen-afdeling branch April 7, 2024 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants