Apply manager scopes to Document and Comment isGranted()

This commit is contained in:
Kijin Sung 2024-10-14 23:42:28 +09:00
parent 8c6beff859
commit 8d8380a366
2 changed files with 2 additions and 2 deletions

View file

@ -126,7 +126,7 @@ class CommentItem extends BaseObject
}
$grant = ModuleModel::getGrant(ModuleModel::getModuleInfoByModuleSrl($this->get('module_srl')), $logged_info);
if ($grant->manager)
if ($grant->manager && $grant->can('moderate:comment'))
{
return $this->grant_cache = true;
}