File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,34 +24,34 @@ def current_organization
2424 return @current_organization if instance_variable_defined? :@current_organization
2525
2626 @current_organization = if !current_role
27- nil
28- elsif current_role . resource . is_a? ( Organization )
29- current_role . resource
30- else
31- Organization . find_by ( short_name : params [ :organization_name ] )
32- end
27+ nil
28+ elsif current_role . resource . is_a? ( Organization )
29+ current_role . resource
30+ else
31+ Organization . find_by ( short_name : params [ :organization_name ] )
32+ end
3333 end
3434 helper_method :current_organization
3535
3636 def current_partner
3737 return @current_partner if instance_variable_defined? :@current_partner
3838
3939 @current_partner = if !current_role || current_role . name . to_sym != Role ::PARTNER
40- nil
41- else
42- current_role . resource
43- end
40+ nil
41+ else
42+ current_role . resource
43+ end
4444 end
4545 helper_method :current_partner
4646
4747 def current_role
4848 return @role if instance_variable_defined? :@role
4949
5050 @role = if !current_user
51- nil
52- else
53- Role . find_by ( id : session [ :current_role ] ) || UsersRole . current_role_for ( current_user )
54- end
51+ nil
52+ else
53+ Role . find_by ( id : session [ :current_role ] ) || UsersRole . current_role_for ( current_user )
54+ end
5555 end
5656
5757 def dashboard_path_from_current_role
You can’t perform that action at this time.
0 commit comments