Security
# Returning true means access should be granted
Rails.application.config.orchestrator.check_access = proc { |system_id, user|
if system_id == 'sys-nuclear-warheads'
user.sys_admin ? true : false
else
# We only want to block access to the warheads
true
end
}def some_method_in_driver
user = current_user
if user.nil?
# Method was invoked internally - timer, onload callback etc
else
logger.info "Method called by user #{user.email} (#{user.id})"
end
endEncrypted Settings
Last updated