From 2aef59dd879b839482fceda99ec6fd03bee11052 Mon Sep 17 00:00:00 2001 From: tanner0101 Date: Thu, 23 Mar 2017 16:39:10 +0100 Subject: [PATCH] publicize static add --- Sources/Authorization/Authorizable.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Authorization/Authorizable.swift b/Sources/Authorization/Authorizable.swift index e5f81e9..107f0e1 100644 --- a/Sources/Authorization/Authorizable.swift +++ b/Sources/Authorization/Authorizable.swift @@ -42,13 +42,13 @@ extension Authorizable { } extension PivotProtocol where Self.Right: Permission { - static func add(_ permissions: [Self.Right], to left: Self.Left) throws { + public static func add(_ permissions: [Self.Right], to left: Self.Left) throws { for permission in permissions { try add(permission, to: left) } } - static func add(_ permission: Self.Right, to left: Self.Left) throws { + public static func add(_ permission: Self.Right, to left: Self.Left) throws { guard let permission = try Self.Right .query() .filter("key", permission.key)