Skip to content
Snippets Groups Projects
Commit 1469230d authored by Jiří Setnička's avatar Jiří Setnička
Browse files

Fix získávání práv při přesunu místa

parent 6b8789ec
Branches
No related tags found
1 merge request!23Titulky stránek a drobečková navigace
This commit is part of merge request !23. Comments created here will be created in the context of that merge request.
......@@ -208,7 +208,7 @@ def org_place_move(id: int):
new_parents = reversed(db.get_place_parents(new_parent))
(_, levels) = db.place_type_names_and_levels[place.type]
rr.get_for(new_parent)
rr = g.gatekeeper.rights_for(new_parent)
if not rr.can_edit_place(new_parent):
search_error = 'Nemáte právo k editaci vybraného nadřazeného místa, přesun nelze uskutečnit'
elif (new_parent.level + 1) not in levels:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment