disable groups profile page (Account#canvas_network_enabled?)
Change-Id: Ia06b309981d2d4e23dab8dd199c1c0840e1090bf
This commit is contained in:
parent
8ed9ada2fc
commit
2f55ac13e1
|
@ -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'
|
||||
|
|
|
@ -1013,4 +1013,8 @@ class Account < ActiveRecord::Base
|
|||
named_scope :limit, lambda {|limit|
|
||||
{:limit => limit}
|
||||
}
|
||||
|
||||
def canvas_network_enabled?
|
||||
false
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue