debug student space
This commit is contained in:
parent
dfd4234daf
commit
c5d73f52cb
@ -27,7 +27,7 @@ class ApplicationController < ActionController::Base
|
|||||||
|
|
||||||
@current_suser ||= StudentUser.find_by_auth_token!(cookies[:student_auth_token]) if cookies[:student_auth_token]
|
@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
|
@current_suser = false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# -*- encoding : utf-8 -*-
|
# -*- encoding : utf-8 -*-
|
||||||
class Student::TopicsController < ApplicationController
|
class Student::TopicsController < ApplicationController
|
||||||
before_filter :auth_admin
|
before_filter :auth_suser
|
||||||
|
|
||||||
|
|
||||||
layout "student"
|
layout "student"
|
||||||
|
@ -7,14 +7,14 @@
|
|||||||
%title Connection
|
%title Connection
|
||||||
= csrf_meta_tags
|
= csrf_meta_tags
|
||||||
= stylesheet_link_tag :admin_auth
|
= stylesheet_link_tag :admin_auth
|
||||||
|
= javascript_include_tag :connexion
|
||||||
|
|
||||||
%body
|
%body
|
||||||
|
:coffeescript
|
||||||
|
$ ->
|
||||||
|
$.backstretch("/login_background.jpg")
|
||||||
#flashs= bootstrap_flash
|
#flashs= bootstrap_flash
|
||||||
.form-signin= yield
|
.form-signin= yield
|
||||||
|
|
||||||
|
|
||||||
= javascript_include_tag "application"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user