mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-13 11:41:31 +00:00
Build modified streamline images
The official image from streamline does not currently work for the arm64 platform. As a temporary measure, the source code and docker build scripts have been lifted from the official images and are used to build locally. Some additional modifications are made to reduce overall image size, these are documented in docker/README.md
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace Streamline\Http\Middleware;
|
||||
|
||||
use Closure;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Carbon\Carbon;
|
||||
use Streamline\Models\GeneralSettings;
|
||||
use Streamline\Models\User;
|
||||
|
||||
class CheckActiveUsersLimit
|
||||
{
|
||||
public function handle($request, Closure $next)
|
||||
{
|
||||
$general_settings = GeneralSettings::find(1);
|
||||
$active_users = User::select('id')->get();
|
||||
$number_of_active_users_limit = $general_settings->number_of_active_users_limit;
|
||||
|
||||
if(count($active_users) > $number_of_active_users_limit) {
|
||||
flash("You have exceeded your active users limit. Please delete extra users to continue")->error();
|
||||
return redirect('/users');
|
||||
}
|
||||
|
||||
return $next($request);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user