Use service_has_permission decorator on inbox

This proves that the decorator works, because the inbox code is already
tested:
bad1e69cc3/tests/app/main/views/test_dashboard.py (L353-L367)
This commit is contained in:
Chris Hill-Scott
2020-07-03 10:00:55 +01:00
parent d4627a2f3a
commit dd2b737d24
3 changed files with 6 additions and 3 deletions

View File

@@ -83,7 +83,9 @@ def user_has_permissions(*permissions, **permission_kwargs):
def service_has_permission(permission):
from app import current_service
def wrap(func):
@wraps(func)
def wrap_func(*args, **kwargs):