disable groups profile page (Account#canvas_network_enabled?)

Change-Id: Ia06b309981d2d4e23dab8dd199c1c0840e1090bf
This commit is contained in:
Cameron Matheson 2012-06-26 10:45:12 -06:00
parent 8ed9ada2fc
commit 2f55ac13e1
2 changed files with 6 additions and 2 deletions

View File

@ -545,8 +545,8 @@ class GroupsController < ApplicationController
end
def profile
# FIXME: use backend setting for this instead of user preference
raise ActiveRecord::RecordNotFound unless show_new_dashboard?
account = @context.root_account
raise ActiveRecord::RecordNotFound unless account.canvas_network_enabled?
@use_new_styles = true
@active_tab = 'profile'

View File

@ -1013,4 +1013,8 @@ class Account < ActiveRecord::Base
named_scope :limit, lambda {|limit|
{:limit => limit}
}
def canvas_network_enabled?
false
end
end