Project

General

Custom queries

Profile

Actions

Bug #5645

closed

Undefined method session when default organization set

Added by Eric Helms almost 11 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Authentication
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

NameError: undefined local variable or method `session' for Foreman::Controller::UsersMixin:Module
 | /home/ehelms/workspace/foreman/app/controllers/concerns/foreman/controller/users_mixin.rb:60:in `block in set_current_taxonomies'
 | /home/ehelms/workspace/foreman/app/controllers/concerns/foreman/controller/users_mixin.rb:55:in `each'
 | /home/ehelms/workspace/foreman/app/controllers/concerns/foreman/controller/users_mixin.rb:55:in `set_current_taxonomies'
 | /home/ehelms/workspace/foreman/app/controllers/concerns/foreman/controller/authentication.rb:77:in `set_current_user'
 | /home/ehelms/workspace/foreman/app/controllers/concerns/foreman/controller/authentication.rb:18:in `authenticate'
Actions #3

Updated by Dominic Cleal almost 11 years ago

  • Status changed from New to Ready For Testing
  • Target version set to 1.8.3
Actions #4

Updated by Eric Helms almost 11 years ago

Steps to reproduce:

1. Create a new user and attach them to an organization
2. Save the user
3. Edit the user and set a default organization
4. Create a new role and give the user some simple permission
5. Log in as that user

Actions #5

Updated by Lukas Zapletal almost 11 years ago

Update: You need to hit the API to reproduce this one.

Actions #7

Updated by Eric Helms almost 11 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF