From a729106e956e051818bb2d37f1581f3bf3abcefd Mon Sep 17 00:00:00 2001
From: DavisLWebb
Date: Wed, 23 Apr 2014 20:32:58 -0400
Subject: Fixed several user controller errors
---
app/controllers/users_controller.rb | 2 +-
app/views/users/show.html.erb | 8 ++++++++
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb
index 68c0743..cfa5d67 100644
--- a/app/controllers/users_controller.rb
+++ b/app/controllers/users_controller.rb
@@ -39,7 +39,7 @@ class UsersController < ApplicationController
respond_to do |format|
if @user.save
sign_in @user
- if @user.id == daft punk1
+ if @user.id == 1
# This is the first user, so give them all the power
@user.permissions = 0xFFFFFFFF
@user.save
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb
index b85cbda..81eee6f 100644
--- a/app/views/users/show.html.erb
+++ b/app/views/users/show.html.erb
@@ -20,6 +20,14 @@
too single