from nodeconductor.core.permissions import StaffPermissionLogic


PERMISSION_LOGICS = (
    ('logging.Alert', StaffPermissionLogic(any_permission=True)),
    ('logging.SystemNotification', StaffPermissionLogic(any_permission=True)),
)

from nodeconductor.core.permissions import StaffPermissionLogic


PERMISSION_LOGICS = (
    ('logging.Alert', StaffPermissionLogic(any_permission=True)),
    ('logging.WebHook', StaffPermissionLogic(any_permission=True)),
    ('logging.PushHook', StaffPermissionLogic(any_permission=True)),
    ('logging.EmailHook', StaffPermissionLogic(any_permission=True)),
    ('logging.SystemNotification', StaffPermissionLogic(any_permission=True)),
)

Allow staff user to manage hooks.
Allow staff user to manage hooks.

  from nodeconductor.core.permissions import StaffPermissionLogic
  
  
  PERMISSION_LOGICS = (
      ('logging.Alert', StaffPermissionLogic(any_permission=True)),
+     ('logging.WebHook', StaffPermissionLogic(any_permission=True)),
+     ('logging.PushHook', StaffPermissionLogic(any_permission=True)),
+     ('logging.EmailHook', StaffPermissionLogic(any_permission=True)),
      ('logging.SystemNotification', StaffPermissionLogic(any_permission=True)),
  )
  
Allow staff user to manage hooks.
## Code Before:
from nodeconductor.core.permissions import StaffPermissionLogic


PERMISSION_LOGICS = (
    ('logging.Alert', StaffPermissionLogic(any_permission=True)),
    ('logging.SystemNotification', StaffPermissionLogic(any_permission=True)),
)

## Instruction:
Allow staff user to manage hooks.
## Code After:
from nodeconductor.core.permissions import StaffPermissionLogic


PERMISSION_LOGICS = (
    ('logging.Alert', StaffPermissionLogic(any_permission=True)),
    ('logging.WebHook', StaffPermissionLogic(any_permission=True)),
    ('logging.PushHook', StaffPermissionLogic(any_permission=True)),
    ('logging.EmailHook', StaffPermissionLogic(any_permission=True)),
    ('logging.SystemNotification', StaffPermissionLogic(any_permission=True)),
)
