def permission_edit(id): permission = Permission.get_by_id(id) menus = Menu.get_all(is_group=True) return render_template('admin/permission/edit.html', permission=permission, menus=menus)
def permission_create(): menus = Menu.get_all(is_group=True) return render_template('admin/permission/create.html', menus=menus)