Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 25adf04

Browse files
committed
Should fix #912
1 parent 7f89b53 commit 25adf04

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/plugins/meta.watch/class.MetaWatchRegister.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,8 @@ private function loadWatchesFromMeta($watchType, $currentUserId, $node, $watchMe
331331
// Make sure the user is still authorized on this node, otherwise remove it.
332332
$uObject = ConfService::getConfStorageImpl()->createUserObject($id);
333333
$acl = $uObject->mergedRole->getAcl($node->getRepositoryId());
334-
if(empty($acl) || strpos($acl, "r") === FALSE){
334+
$isOwner = ($node->getRepository()->getOwner() == $uObject->getId());
335+
if(!$isOwner && (empty($acl) || strpos($acl, "r") === FALSE)){
335336
unset($IDS[$index]);
336337
if(is_array($watchMeta)){
337338
$changes = true;

0 commit comments

Comments
 (0)