feat: remove user directory
The user directory feature has been removed. This means users can no longer see the user list unless they have admin privileges.
This commit is contained in:
parent
78bc9b6bf9
commit
30f0ef6586
@ -42,12 +42,6 @@ class ProfileController extends Controller
|
||||
$this->profileService = $profileService;
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
return view('dashboard.user.directory')
|
||||
->with('users', User::with('profile', 'bans')->paginate(9));
|
||||
}
|
||||
|
||||
public function showProfile()
|
||||
{
|
||||
// TODO: Come up with cleaner social media solution, e.g. social media object
|
||||
|
@ -232,12 +232,6 @@ return [
|
||||
'icon' => 'fas fa-home',
|
||||
'url' => 'dashboard',
|
||||
],
|
||||
[
|
||||
'text' => 'm_directory',
|
||||
'icon' => 'fas fa-users',
|
||||
'url' => 'users/directory',
|
||||
'can' => 'profiles.view.others',
|
||||
],
|
||||
[
|
||||
'header' => 'h_applications',
|
||||
'can' => 'applications.view.own',
|
||||
|
@ -270,33 +270,6 @@
|
||||
@endif
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row mt-4">
|
||||
|
||||
<div class="col">
|
||||
|
||||
<div class="card">
|
||||
|
||||
<div class="card-header">
|
||||
|
||||
<h4>
|
||||
<i class="fa fa-calendar"></i> {{__('Your upcoming interviews')}} (<i>{{__('Coming soon')}}</i>)
|
||||
</h4>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
<div id="upcomingCalendar"></div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@stop
|
||||
@section('footer')
|
||||
@include('breadcrumbs.dashboard.footer')
|
||||
|
@ -108,9 +108,6 @@ Route::group(['prefix' => LaravelLocalization::setLocale(), 'middleware' => ['lo
|
||||
->name('dashboard')
|
||||
->middleware('eligibility');
|
||||
|
||||
Route::get('users/directory', [ProfileController::class, 'index'])
|
||||
->name('directory');
|
||||
|
||||
Route::resource('teams', TeamController::class);
|
||||
|
||||
Route::post('teams/{team}/invites/send', [TeamController::class, 'invite'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user