Skip to content
This repository has been archived by the owner on Nov 16, 2020. It is now read-only.

Commit

Permalink
publicize static add
Browse files Browse the repository at this point in the history
  • Loading branch information
tanner0101 committed Mar 23, 2017
1 parent 413da46 commit 2aef59d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Authorization/Authorizable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2aef59d

Please sign in to comment.