Skip to content

Commit

Permalink
Fix typo in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielpra1 committed Oct 18, 2019
1 parent d699643 commit 1f5ad37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/middlewares/object_scope_authorization_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ defmodule Rajska.ObjectScopeAuthorizationTest do
def has_user_access?(%{role: :admin}, User, _field, :default), do: true
def has_user_access?(%{id: user_id}, User, {:id, id}, :default) when user_id === id, do: true
def has_user_access?(_current_user, User, _field, :default), do: false
def has_user_access?(_crreutn_user, User, _field, :object), do: false
def has_user_access?(_current_user, User, _field, :object), do: false

def has_user_access?(%{role: :admin}, Company, _field, :default), do: true
def has_user_access?(%{id: user_id}, Company, {:user_id, company_user_id}, :default) when user_id === company_user_id, do: true
Expand Down

0 comments on commit 1f5ad37

Please sign in to comment.