Skip to content

check permission - #9444

Merged
mejo- merged 1 commit into
mainfrom
fix/read-only-permission
Oct 22, 2026
Merged

mejo- merged 1 commit into
mainfrom
fix/read-only-permission

Conversation

@samin-z

@samin-z samin-z commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: samin-z <samin.zavarkesh@gmail.com>
}

foreach ($nodes as $node) {
if (($node->getPermissions() & Constants::PERMISSION_UPDATE) === Constants::PERMISSION_UPDATE) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not use the helper from FileService here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the 'isReadOnly' checks the update permission and also blocks the file when it is locked, tag only needs the update permission

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, you're right.

}

foreach ($nodes as $node) {
if (($node->getPermissions() & Constants::PERMISSION_UPDATE) === Constants::PERMISSION_UPDATE) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh, you're right.

@mejo-
mejo- merged commit fa78ff1 into main Oct 22, 2026
67 of 69 checks passed
@mejo-
mejo- deleted the fix/read-only-permission branch October 22, 2026 09:51
@mejo-

mejo- commented Oct 22, 2026

Copy link
Copy Markdown
Member

/backport to stable35

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.

2 participants