Respect the view encrypted custom fields permission

This commit is contained in:
snipe
2026-05-18 14:18:58 +01:00
parent 87d6328fb8
commit 63454f8c63
3 changed files with 45 additions and 39 deletions
+5
View File
@@ -180,6 +180,11 @@ class UserFactory extends Factory
return $this->appendPermission(['assets.view.requestable' => '1']);
}
public function viewEncryptedCustomFields()
{
return $this->appendPermission(['assets.view.encrypted_custom_fields' => '1']);
}
public function deleteAssetModels()
{
return $this->appendPermission(['models.delete' => '1']);