From c83401d43b75ebbf725798723af3681a2bc0619a Mon Sep 17 00:00:00 2001 From: discomrade <83621080+discomrade@users.noreply.github.com> Date: Mon, 15 Jul 2024 01:33:07 +0000 Subject: [PATCH] [relationships] use permission to check if editable --- ext/relationships/theme.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/relationships/theme.php b/ext/relationships/theme.php index f05051de..22b122e4 100644 --- a/ext/relationships/theme.php +++ b/ext/relationships/theme.php @@ -66,7 +66,7 @@ class RelationshipsTheme extends Themelet return SHM_POST_INFO( "Parent", strval($image['parent_id']) ?: "None", - !$user->is_anonymous() ? INPUT(["type" => "number", "name" => "parent", "value" => $image['parent_id']]) : null + $user->can(Permissions::EDIT_IMAGE_RELATIONSHIPS) ? INPUT(["type" => "number", "name" => "parent", "value" => $image['parent_id']]) : null ); }