Page MenuHomeSoftware Heritage

Consistently check add-forge-now permission to access or update info
ClosedPublic

Authored by ardumont on Mar 21 2022, 3:56 PM.

Details

Summary

This fixes an inconsistency when accessing the add-forge-now moderation view as admin
without any moderation permission.

This now consistently let access to moderation to any person who is either staff or with
an add-forge-now moderator role.

Related to T4062

Diff Detail

Repository
rDWAPPS Web applications
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D7401 (id=26741)

Rebasing onto f232481f96...

Current branch diff-target is up to date.
Changes applied before test
commit 82d7c4bd399eac5c10af041f39f1a0309bf59d04
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Mon Mar 21 15:54:01 2022 +0100

    Consistently check add-forge-now permission to access or update info
    
    This fixes an inconsistency when accessing the add-forge-now moderation view as admin
    without any moderation permission.
    
    This now consistently let access to moderation to any person who is either staff or with
    an add-forge-now moderator role.

See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/1517/ for more details.

This revision is now accepted and ready to land.Mar 21 2022, 4:15 PM