CommonValidations: Extract modification right checker

This commit is contained in:
lain 2020-08-05 17:26:53 +02:00
commit 9c96fc052a
3 changed files with 29 additions and 28 deletions

View file

@ -87,7 +87,7 @@ defmodule Pleroma.Web.ActivityPub.ObjectValidators.DeleteValidationTest do
{:error, cng} = ObjectValidator.validate(invalid_other_actor, [])
assert {:actor, {"is not allowed to delete object", []}} in cng.errors
assert {:actor, {"is not allowed to modify object", []}} in cng.errors
end
test "it's valid if the actor of the object is a local superuser",