Skip to content

Commit aed159a

Browse files
author
Kristan Kenney
committed
Fix modification/deletion of packages
1 parent af6e9ca commit aed159a

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

bin/v-delete-user-package

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ source $HESTIA/conf/hestia.conf
2424

2525
# Functions
2626
is_package_in_use() {
27-
check_package=$(grep "PACKAGE='default" $HESTIA/data/users/*/user.conf | cut -d'/' -f7)
27+
check_package=$(grep "PACKAGE='$package" $HESTIA/data/users/*/user.conf | cut -d'/' -f7)
2828
if [ ! -z "$check_package" ]; then
2929
for user in $check_package; do
3030
$BIN/v-change-user-package "$user" 'default'

web/templates/admin/list_packages.html

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,7 @@
6868
<div class="clearfix l-unit__stat-col--left super-compact">
6969
<input id="check<?=$i?>" class="ch-toggle" type="checkbox" name="user[]" value="<?=$key?>">
7070
</div>
71-
<? if ($key == 'default') { ?>
72-
<div class="clearfix l-unit__stat-col--left wide-2 truncate"><b><?=$key?></b></div>
73-
<? } else {?>
74-
<div class="clearfix l-unit__stat-col--left wide-2 truncate"><b><a href="/edit/package/?package=<?=$key?>&token=<?=$_SESSION['token']?>" title="<?=_('Editing Package')?>: <?=$key?>"><?=$key?></b></a></div>
75-
<? } ?>
71+
<div class="clearfix l-unit__stat-col--left wide-2 truncate"><b><a href="/edit/package/?package=<?=$key?>&token=<?=$_SESSION['token']?>" title="<?=_('Editing Package')?>: <?=$key?>"><?=$key?></b></a></div>
7672
<!-- START QUICK ACTION TOOLBAR AREA -->
7773
<div class="clearfix l-unit__stat-col--left text-right compact-3">
7874
<div class="l-unit-toolbar__col l-unit-toolbar__col--right noselect">

0 commit comments

Comments
 (0)