Private GIT

Skip to content
Snippets Groups Projects
Commit 3302f939 authored by Miha Petkovsek's avatar Miha Petkovsek
Browse files

Fix

parent e11a9cca
No related branches found
No related tags found
No related merge requests found
...@@ -23,14 +23,15 @@ else { ...@@ -23,14 +23,15 @@ else {
if ($User->get_module_permissions ("vaults")==User::ACCESS_RWA) { if ($User->get_module_permissions ("vaults")==User::ACCESS_RWA) {
print "<button class='btn btn-sm btn-default open_popup' style='margin-bottom:10px;' data-script='app/admin/vaults/edit.php' data-class='700' data-action='add'><i class='fa fa-plus'></i> "._('Create Vault')."</button>"; print "<button class='btn btn-sm btn-default open_popup' style='margin-bottom:10px;' data-script='app/admin/vaults/edit.php' data-class='700' data-action='add'><i class='fa fa-plus'></i> "._('Create Vault')."</button>";
} }
// print vaults
if($all_vaults!==false) {
// group by type // group by type
$all_vault_types = ["certificates"=>[], "passwords"=>[]]; $all_vault_types = ["certificates"=>[], "passwords"=>[]];
if(is_array($all_vaults)) {
foreach ($all_vaults as $v) { foreach ($all_vaults as $v) {
$all_vault_types[$v->type][] = $v; $all_vault_types[$v->type][] = $v;
} }
}
// print // print
foreach ($all_vault_types as $key=>$all_vaults_grouped) { foreach ($all_vault_types as $key=>$all_vaults_grouped) {
...@@ -123,7 +124,3 @@ else { ...@@ -123,7 +124,3 @@ else {
print "</table>"; print "</table>";
} }
} }
\ No newline at end of file
else {
$Result->show("info alert-nomargin", _("No Vaults available")."!", false);
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment