Пример #1
0
 def dispatch(self, request, *args, **kwargs):
     check_permissions(request, "CAN_DELETE_GW_SERVICE")
     self.logger = build_logger(request, __name__)
     return super(DeleteView, self).dispatch(request, *args, **kwargs)
Пример #2
0
 def dispatch(self, request, *args, **kwargs):
     check_permissions(request, "CAN_SEARCH_TRUST")
     self.logger = build_logger(request, __name__)
     return super(ListTrust, self).dispatch(request, *args, **kwargs)
Пример #3
0
 def dispatch(self, request, *args, **kwargs):
     check_permissions(request, "CAN_EDIT_GW_API")
     self.logger = build_logger(request, __name__)
     return super(EditView, self).dispatch(request, *args, **kwargs)
Пример #4
0
 def dispatch(self, request, *args, **kwargs):
     check_permissions(request, 'CAN_CHANGE_SCOPES_CHANNEL_GW_CLIENTS')
     self.logger = build_logger(request, __name__)
     return super(ClientChannelGatewayScopeList,
                  self).dispatch(request, *args, **kwargs)
 def dispatch(self, request, *args, **kwargs):
     check_permissions(request, 'CAN_APPROVE_VOUCHER_ADJUSTMENT')
     correlation_id = get_correlation_id_from_username(self.request.user)
     self.logger = setup_logger(self.request, logger, correlation_id)
     return super(RejectVoucherRefundView,
                  self).dispatch(request, *args, **kwargs)
Пример #6
0
 def dispatch(self, request, *args, **kwargs):
     check_permissions(request, "SYS_BAL_ADJUST_APPROVE")
     correlation_id = get_correlation_id_from_username(self.request.user)
     self.logger = setup_logger(self.request, logger, correlation_id)
     return super(BalanceAdjustmentListActionView,
                  self).dispatch(request, *args, **kwargs)
Пример #7
0
 def dispatch(self, request, *args, **kwargs):
     check_permissions(request, "CAN_LABEL_TIER_CONFIGURATION")
     self.logger = build_logger(request, __name__)
     return super(TierLevelView, self).dispatch(request, *args, **kwargs)
Пример #8
0
 def dispatch(self, request, *args, **kwargs):
     check_permissions(request, 'CAN_CREATE_GW_API')
     self.logger = build_logger(request, __name__)
     return super(CreateView, self).dispatch(request, *args, **kwargs)