From 5398cd794c99278973371fb2f79b6ef428787e7d Mon Sep 17 00:00:00 2001 From: Anthony F McInerney Date: Sat, 17 Oct 2020 22:47:05 +0100 Subject: [PATCH] service templates - move to blade - fixes --- LibreNMS/Permissions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LibreNMS/Permissions.php b/LibreNMS/Permissions.php index 7e12337050..c4a087f785 100644 --- a/LibreNMS/Permissions.php +++ b/LibreNMS/Permissions.php @@ -190,7 +190,7 @@ class Permissions * @param \App\Models\User|int $user * @return \Illuminate\Support\Collection */ - public function serviceTemplatesForUser($user = null) + public static function serviceTemplatesForUser($user = null) { return $this->getServiceTemplatePermissions($user) ->where('user_id', $this->getUserId($user)) @@ -249,7 +249,7 @@ class Permissions * * @return \Illuminate\Support\Collection */ - public static function getServiceTemplatePermissions() + public function getServiceTemplatePermissions() { if (is_null($this->serviceTemplatePermissions)) { $this->serviceTemplatePermissions = DB::table('service_templates')->get();