from profiles import views as profile_views
from grace.authent.forms import ContactForm
-
+from django.conf import settings
def edit_profile(request):
form = profile_views.edit_profile(request, form_class=ContactForm)
status = True
if g.name == "g_third_party":
status = True
+ if g.name == "g_L49" and settings.GRACE_MAP_L49_ID == int(mapid):
+ status = True
# we also need to check the specific permission
if status and user.has_perm("authent.cannot_edit_attributes") and not user.is_superuser:
status = False
status = True
if g.name == "g_third_party":
status = True
+ if g.name == "g_L49" and settings.GRACE_MAP_L49_ID == int(mapid):
+ status = True
# we also need to check the specific permission
if status and user.has_perm("authent.cannot_edit_geometries") and not user.is_superuser: