Skip to content

CA-394169: Allow task to have permissions on itself #5736

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

GabrielBuica
Copy link
Contributor

Do not check permissions of a task if it is acting on itself. In the case the session is lost, the task needs to be able to update itself.

If the session were to be lost, we would not able to retrieve back the correct auth_user_id. If the task ids match implies that we know we were already authorized.

@GabrielBuica GabrielBuica force-pushed the private/dbuica/CA-394169-fix branch from 8c536e1 to 1294e94 Compare June 26, 2024 08:40
@edwintorok
Copy link
Contributor

The CI failure is from master, fix merged here, rebase your branch: #5737

Do not check permissions of a task if it is acting on itself.
In the case the session is lost, the task needs to be able to update
itself.

If the session were to be lost, we would not able to retrieve back the
correct `auth_user_id`. If the task ids match implies that we know we
were already authorized.

Signed-off-by: Gabriel Buica <danutgabriel.buica@cloud.com>
@GabrielBuica GabrielBuica force-pushed the private/dbuica/CA-394169-fix branch from 1294e94 to 15b6401 Compare June 26, 2024 09:33
@lindig lindig merged commit f25cee6 into xapi-project:master Jun 26, 2024
14 checks passed
@GabrielBuica GabrielBuica deleted the private/dbuica/CA-394169-fix branch January 8, 2025 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants