Made having a confirmed email not required to view edit pages.

This commit is contained in:
Logan Fick
2017-11-11 19:53:51 -05:00
parent ec085121a4
commit 780598ca6d
2 changed files with 5 additions and 5 deletions

View File

@@ -9,7 +9,7 @@ class ForumgroupsController < ApplicationController
end
def edit
if admin? && current_user.confirmed?
if admin?
@group = Forumgroup.find(params[:id])
else
flash[:alert] = "You are not allowed to edit forum groups."
@@ -32,7 +32,7 @@ class ForumgroupsController < ApplicationController
end
def new
if admin? && current_user.confirmed?
if admin?
@group = Forumgroup.new
else
flash[:alert] = "You are not allowed to create forum groups."