Skip to content
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

Log picture removal link generation error #2355

Open
rapotek opened this issue Jun 1, 2022 · 0 comments
Open

Log picture removal link generation error #2355

rapotek opened this issue Jun 1, 2022 · 0 comments

Comments

@rapotek
Copy link
Contributor

rapotek commented Jun 1, 2022

There is an error in

if ($loggedUser && ( $pic_record['user_id'] == $loggedUser || $loggedUser->hasOcTeamRole())) {

resulting in the user who added a picture to his own log entry has no link to remove the picture.

This line should be f.ex.:
if ($loggedUser && ( $pic_record['user_id'] == $loggedUser->getUserId() || $loggedUser->hasOcTeamRole())) {

BTW: In future, this page really needs refactoring and picture removal should be done through REST API just like log removal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants