debug student space

This commit is contained in:
Nicolas Bally 2014-07-20 02:32:21 +02:00
parent dfd4234daf
commit c5d73f52cb
3 changed files with 7 additions and 7 deletions

View File

@ -27,7 +27,7 @@ class ApplicationController < ActionController::Base
@current_suser ||= StudentUser.find_by_auth_token!(cookies[:student_auth_token]) if cookies[:student_auth_token]
if @current_suser.lock?
if @current_suser and @current_suser.lock?
@current_suser = false
end

View File

@ -1,6 +1,6 @@
# -*- encoding : utf-8 -*-
class Student::TopicsController < ApplicationController
before_filter :auth_admin
before_filter :auth_suser
layout "student"

View File

@ -7,14 +7,14 @@
%title Connection
= csrf_meta_tags
= stylesheet_link_tag :admin_auth
= javascript_include_tag :connexion
%body
:coffeescript
$ ->
$.backstretch("/login_background.jpg")
#flashs= bootstrap_flash
.form-signin= yield
= javascript_include_tag "application"