Loading rpc/methods.py +1 −1 Original line number Diff line number Diff line Loading @@ -636,7 +636,7 @@ def rename_resource(user: User, resource_id: int, title: str) -> bool: resource_instance = query_set.first() if not resource_instance: return False _check_project_permission(user, resource_instance.project, "resource.update") _check_project_permission(user, resource_instance.ptr_project, "resource.update") resource_instance.title = title resource_instance.save() return True Loading Loading
rpc/methods.py +1 −1 Original line number Diff line number Diff line Loading @@ -636,7 +636,7 @@ def rename_resource(user: User, resource_id: int, title: str) -> bool: resource_instance = query_set.first() if not resource_instance: return False _check_project_permission(user, resource_instance.project, "resource.update") _check_project_permission(user, resource_instance.ptr_project, "resource.update") resource_instance.title = title resource_instance.save() return True Loading