Commit 21efc748 authored by valtron's avatar valtron

fix

parent d3944fa0
......@@ -181,10 +181,10 @@ class Backend:
g = user.detail.groups.get(group_id)
if g is None:
raise error.GroupDoesNotExist()
if name is not None:
if len(name) > MAX_GROUP_NAME_LENGTH:
if new_name is not None:
if len(new_name) > MAX_GROUP_NAME_LENGTH:
raise error.GroupNameTooLong()
g.name = name
g.new_name = new_name
if is_favorite is not None:
g.is_favorite = is_favorite
self._mark_modified(user)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment