This commit is contained in:
holger.trampe 2021-07-22 17:26:01 +02:00
parent 72cfd367a0
commit e90a91355a
31 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ SESSION_COOKIE_AGE = 8*60*60
CHANNELS_PRESENCE_MAX_AGE = 30 CHANNELS_PRESENCE_MAX_AGE = 30
# FOR SUMMERNOTE ORIGIN # FOR SUMMERNOTE ORIGIN
X_FRAME_OPTIONS = 'SAMEORIGIN' X_FRAME_OPTIONS = 'ALLOWALL'
# Quick-start development settings - unsuitable for production # Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/ # See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/

Binary file not shown.

Binary file not shown.

View File

@ -604,7 +604,7 @@ class RDAoneAddHL(CreateView):
template_name = "recoverdir/rd_elements_forms/rd_area_1_addhl.html" template_name = "recoverdir/rd_elements_forms/rd_area_1_addhl.html"
def dispatch(self, *args, **kwargs): def dispatch(self, *args, **kwargs):
if(checkForLogin(self) and self.instance.agency == self.request.user.profile.agency): if(checkForLogin(self)):
return super().dispatch(*args, **kwargs) return super().dispatch(*args, **kwargs)
else: else:
return redirect('recoverdir-login') return redirect('recoverdir-login')