Skip to content

Commit

Permalink
Update web/modules/custom/server_general/server_general.module
Browse files Browse the repository at this point in the history
Co-authored-by: Mariano D'Agostino <[email protected]>
  • Loading branch information
balagan73 and mariano-dagostino authored Mar 11, 2024
1 parent 8cadcd1 commit c74a9fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/modules/custom/server_general/server_general.module
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function server_general_node_access(NodeInterface $entity, string $op, AccountIn

$main_settings = server_general_get_main_settings();

if ($main_settings instanceof ConfigPages && $op === 'delete' && server_general_is_node_locked($entity)) {
if ($op === 'delete' && $main_settings instanceof ConfigPages && server_general_is_node_locked($entity)) {
// Add cache tags to the cache metadata.
$cache_tags = $main_settings->getCacheTags();
return AccessResult::forbidden()->addCacheableDependency($entity)->addCacheTags($cache_tags);
Expand Down

0 comments on commit c74a9fd

Please sign in to comment.