misc: disable usersearch cell by default (#15237)

This commit is contained in:
Frédéric Péters 2018-10-23 20:56:16 +02:00
parent c4dc3542a5
commit a7aed0db5a
2 changed files with 7 additions and 1 deletions

View File

@ -14,6 +14,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from django.contrib.auth.models import User
@ -31,6 +32,10 @@ class UserSearchCell(CellBase):
class Meta:
verbose_name = _('User Search')
@classmethod
def is_enabled(cls):
return settings.USERSEARCH_CELL_ENABLED
def is_visible(self, user=None):
return super(UserSearchCell, self).is_visible(user=user)

View File

@ -313,9 +313,10 @@ WCS_CATEGORY_ASSET_SLOTS = {
WCS_FORM_ASSET_SLOTS = {}
# hide work-in-progress/experimental/whatever cells for now
# hide work-in-progress/experimental/broken/legacy/whatever cells for now
BOOKING_CALENDAR_CELL_ENABLED = False
NEWSLETTERS_CELL_ENABLED = False
USERSEARCH_CELL_ENABLED = False
local_settings_file = os.environ.get('COMBO_SETTINGS_FILE',
os.path.join(os.path.dirname(__file__), 'local_settings.py'))