Skip to content
Snippets Groups Projects
Commit 27305f12 authored by Maël Méliani's avatar Maël Méliani
Browse files

A layer could be enabled or disabled when modifying...

parent 4e92a55c
No related branches found
No related tags found
No related merge requests found
......@@ -748,7 +748,7 @@ class layer(object):
mf = get_mapfile(map_name)
data = get_data(name="layer", mandatory=["name", "resource"],
authorized=["name", "title", "abstract", "resource"])
authorized=["name", "title", "abstract", "resource", "enabled"])
if l_name != data.pop("name"):
raise webapp.Forbidden("Can't change the name of a layer.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment