Skip to content

Commit

Permalink
Add status badge, remove python 3.7 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
David Bozhanov committed Jun 10, 2024
1 parent 6106bae commit 415c608
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: [3.7, 3.8, 3.9, 3.10]
python-version: [3.8, 3.9, 3.10]
db: [postgres, mysql]
include:
- db: postgres
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# PermaGate

-----
[![Django CI](https://github.com/davnov015/django-permagate/actions/workflows/django.yml/badge.svg)](https://github.com/davnov015/django-permagate/actions/workflows/django.yml)

PermaGate is a Django permissions system which offers hierarchical permissions that can be
directly to users and groups.

Expand Down Expand Up @@ -97,10 +100,10 @@ test_user_two = User.objects.create(username="test2")
test_group.user_set.add(test_user_two)

if has_permission(test_user, "test.sub1"):
print(f"User {test_user.username} has permission test.sub1 due to directly assignment")
print(f"User {test_user.username} has permission test.sub1 due to direct assignment")

if has_permission(test_user_two, "test.sub1"):
print(f"fUser {test_user_two.username} has permission test.sub1 via group assignment")
print(f"User {test_user_two.username} inherits permission test.sub1 via group assignment")
```

Note that the permission strings assigned to users may include the inclusive wildcard
Expand Down

0 comments on commit 415c608

Please sign in to comment.