       return KodingAppsController.loadInternalApp name, (err, res) =>
         return kd.warn err  if err
         kd.utils.defer => @handleRoute route, options
+
+    group = kd.singletons.groupsController.getCurrentGroup()
+
+    if isGroupDisabled(group) and not @isRouteAllowed route
+      return @handleRoute @getGroupDisabledRoute route
 
     return @handleRoute @getDefaultRoute()  if /<|>/.test route
     super route, options

KodingAppsController = require './kodingappscontroller'
HomeGetters          = require 'home/flux/getters'
LocalStorage = require 'app/localstorage'

module.exports = class KodingRouter extends kd.Router


      return '/Welcome'


  isRouteAllowed: (route) ->

    role = if isAdmin() then 'admin' else 'member'

    allowedRoutes =
      admin: [
        '/Home/team-billing'
        '/Disabled/Admin'
      ]
      member: [
        '/Disabled/Member'
        '/Disabled/Member/notify-success'
      ]

    return route in allowedRoutes[role]


  getGroupDisabledRoute: (originalRoute) ->

    if isAdmin() then '/Disabled/Admin' else '/Disabled/Member'


  setPageTitle: (title = 'Koding') -> kd.singletons.pageTitle.update title
