diff --git a/README.md b/README.md index 6e28c039..cde0852d 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,7 @@ Support is known for these LDAP servers: - [X] OpenLDAP - [X] OpenDJ - [ ] Microsoft Active Directory +- [ ] 389 Directory Server If there is an LDAP server that you have that you would like to have supported, please open an issue to request it. You might need to provide access, provide a copy or instructions to get an environment for testing. If you have enabled diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index c47bce69..a2887d1e 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -386,7 +386,13 @@ class HomeController extends Controller 'dn' => $view ->with('dn',$key['dn']) ->with('o',$o) - ->with('page_actions',collect(['edit'=>TRUE])), + ->with('page_actions',collect([ + 'copy'=>FALSE, + 'create'=>FALSE, + 'delete'=>TRUE, + 'edit'=>TRUE, + 'export'=>TRUE, + ])), 'import' => $view, diff --git a/resources/views/frames/dn.blade.php b/resources/views/frames/dn.blade.php index 8a270f6e..931352ef 100644 --- a/resources/views/frames/dn.blade.php +++ b/resources/views/frames/dn.blade.php @@ -9,25 +9,30 @@ <div class="col"> <div class="action-buttons float-end"> <ul class="nav"> - @if(isset($page_actions) && $page_actions->contains('export')) + @if(isset($page_actions) && $page_actions->get('create')) + <li> + <button class="btn btn-outline-dark p-1 m-1" id="entry-copy-move" data-bs-toggle="tooltip" data-bs-placement="bottom" title="@lang('New Child')" disabled><i class="fas fa-fw fa-diagram-project fs-5"></i></button> + </li> + @endif + @if(isset($page_actions) && $page_actions->get('export')) <li> <span id="entry-export" data-bs-toggle="modal" data-bs-target="#page-modal"> <button class="btn btn-outline-dark p-1 m-1" data-bs-toggle="tooltip" data-bs-placement="bottom" title="@lang('Export')"><i class="fas fa-fw fa-download fs-5"></i></button> </span> </li> @endif - @if(isset($page_actions) && $page_actions->contains('copy')) + @if(isset($page_actions) && $page_actions->get('copy')) <li> <button class="btn btn-outline-dark p-1 m-1" id="entry-copy-move" data-bs-toggle="tooltip" data-bs-placement="bottom" title="@lang('Copy/Move')" disabled><i class="fas fa-fw fa-copy fs-5"></i></button> </li> @endif - @if((isset($page_actions) && $page_actions->contains('edit')) || old()) + @if(isset($page_actions) && $page_actions->get('edit')) <li> <button class="btn btn-outline-dark p-1 m-1" id="entry-edit" data-bs-toggle="tooltip" data-bs-placement="bottom" title="@lang('Edit Entry')"><i class="fas fa-fw fa-edit fs-5"></i></button> </li> @endif <!-- @todo Dont offer the delete button for an entry with children --> - @if(isset($page_actions) && $page_actions->contains('delete')) + @if(isset($page_actions) && $page_actions->get('delete')) <li> <span id="entry-delete" data-bs-toggle="modal" data-bs-target="#page-modal"> <button class="btn btn-outline-danger p-1 m-1" data-bs-custom-class="custom-tooltip-danger" data-bs-toggle="tooltip" data-bs-placement="bottom" title="@lang('Delete Entry')"><i class="fas fa-fw fa-trash-can fs-5"></i></button>