ansible / django-ansible-base

Apache License 2.0
18 stars 45 forks source link

Fix AuthMap groups and attributes rules #480

Closed slemrmartin closed 4 months ago

slemrmartin commented 4 months ago

This PR fixes AuthMap permissions for trigger_type='groups' and trigger_type='attributes'

Before, it revoked permission to all users who don't met a trigger condition, regardless of the revoke attribute. Now, it revokes permission only with revoke: True, otherwise it skips the auth map.

sonarcloud[bot] commented 4 months ago

Quality Gate Passed Quality Gate passed

Issues
2 New issues
0 Accepted issues

Measures
0 Security Hotspots
91.4% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud