feat: Disable member list via configuration (#990)

This commit is contained in:
kidhab 2023-06-10 10:32:16 +02:00 committed by GitHub
parent 075f3cfa1a
commit c50ba6eda5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 14 additions and 2 deletions

View file

@ -1,4 +1,6 @@
class Foodcoop::UsersController < ApplicationController
before_action -> { require_config_disabled :disable_members_overview }
def index
@users = User.undeleted.sort_by_param(params['sort'])