Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
anitagraham committed Mar 14, 2019
1 parent 485d14f commit 0eab358
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lib/refinery/authentication/devise/authorisation_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ def current_user=(set_to_this_user)
end

def allow?(operation, resource)
Rails.logger.debug('. . . . . . . . . .')
Rails.logger.debug(operation)
Rails.logger.debug(current_user.active_plugins.names)
Rails.logger.debug(resource)
Rails.logger.debug('. . . . . . . . . .')
case
when resource == :site_bar
current_user.has_role?(:refinery)
Expand Down
2 changes: 1 addition & 1 deletion refinerycms-authentication-devise.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Gem::Specification.new do |s|
s.test_files = `git ls-files -- spec/*`.split("\n")

s.add_dependency 'refinerycms-core', ['>= 3.0.0', '< 5.0']
s.add_dependency 'actionmailer', '>= 5.0.0'
s.add_dependency 'actionmailer', '>= 5.1'
s.add_dependency 'devise', ['~> 4.0', '>= 4.3.0']
s.add_dependency 'friendly_id', '~> 5.2.1'

Expand Down

0 comments on commit 0eab358

Please sign in to comment.