]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix artifact verb permissions (#14163)
authorLeon Friedrich <60421075+ElectroJr@users.noreply.github.com>
Sat, 18 Feb 2023 17:44:53 +0000 (06:44 +1300)
committerGitHub <noreply@github.com>
Sat, 18 Feb 2023 17:44:53 +0000 (04:44 +1100)
Content.Server/Administration/Systems/AdminVerbSystem.cs

index 2c1d698e9e2c45712b1431c0f7eb4e6f04c6ad8d..300dec0386722dd36809ffb9ff82e8e24059c51a 100644 (file)
@@ -216,7 +216,7 @@ namespace Content.Server.Administration.Systems
             }
 
             // XenoArcheology
-            if (TryComp<ArtifactComponent>(args.Target, out var artifact))
+            if (_adminManager.IsAdmin(player) && TryComp<ArtifactComponent>(args.Target, out var artifact))
             {
                 // make artifact always active (by adding timer trigger)
                 args.Verbs.Add(new Verb()