Skip to content

Commit

Permalink
Bug: 14447 Fix delete permissions.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Aug 18, 2016
1 parent 8ece935 commit 0dc9260
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions kronolith/js/kronolith.js
Expand Up @@ -3385,7 +3385,7 @@ KronolithCore = {
} else {
$('kronolithC' + type + 'PGedit_' + group).setValue(0);
}
$('kronolithC' + type + 'PGdelete_' + group).setValue(0);
$('kronolithC' + type + 'PGdel_' + group).setValue(0);
if ($('kronolithC' + type + 'PGdelegate_' + group)) {
$('kronolithC' + type + 'PGdelegate_' + group).setValue(0);
}
Expand All @@ -3411,7 +3411,7 @@ KronolithCore = {
} else {
$('kronolithC' + type + 'PUedit_' + user).setValue(0);
}
$('kronolithC' + type + 'PUdelete_' + user).setValue(0);
$('kronolithC' + type + 'PUdel_' + user).setValue(0);
if ($('kronolithC' + type + 'PUdelegate_' + user)) {
$('kronolithC' + type + 'PUdelegate_' + user).setValue(0);
}
Expand Down
20 changes: 10 additions & 10 deletions kronolith/templates/chunks/permissions.inc
Expand Up @@ -105,8 +105,8 @@
<label for="kronolithC<?php echo $type ?>Pdefaultedit"><?php echo _("Edit") ?></label>
</td>
<td>
<input type="checkbox" id="kronolithC<?php echo $type ?>Pdefaultdelete" name="default_delete" />
<label for="kronolithC<?php echo $type ?>Pdefaultdelete"><?php echo _("Delete") ?></label>
<input type="checkbox" id="kronolithC<?php echo $type ?>Pdefaultdel" name="default_delete" />
<label for="kronolithC<?php echo $type ?>Pdefaultdel"><?php echo _("Delete") ?></label>
</td>
<?php if ($type == 'internal'): ?>
<td>
Expand All @@ -132,8 +132,8 @@
<label for="kronolithC<?php echo $type ?>Pguestedit"><?php echo _("Edit") ?></label>
</td>
<td>
<input type="checkbox" id="kronolithC<?php echo $type ?>Pguestdelete" name="guest_delete" />
<label for="kronolithC<?php echo $type ?>Pguestdelete"><?php echo _("Delete") ?></label>
<input type="checkbox" id="kronolithC<?php echo $type ?>Pguestdel" name="guest_delete" />
<label for="kronolithC<?php echo $type ?>Pguestdel"><?php echo _("Delete") ?></label>
</td>
<?php if ($type == 'internal'): ?>
<td>
Expand All @@ -160,8 +160,8 @@
<label for="kronolithC<?php echo $type ?>Pcreatoredit"><?php echo _("Edit") ?></label>
</td>
<td>
<input type="checkbox" id="kronolithC<?php echo $type ?>Pcreatordelete" name="creator_delete" />
<label for="kronolithC<?php echo $type ?>Pcreatordelete"><?php echo _("Delete") ?></label>
<input type="checkbox" id="kronolithC<?php echo $type ?>Pcreatordel" name="creator_delete" />
<label for="kronolithC<?php echo $type ?>Pcreatordel"><?php echo _("Delete") ?></label>
</td>
<?php if ($type == 'internal'): ?>
<td>
Expand Down Expand Up @@ -213,8 +213,8 @@
<label for="kronolithC<?php echo $type ?>PUedit_new"><?php echo _("Edit") ?></label>
</td>
<td>
<input type="checkbox" id="kronolithC<?php echo $type ?>PUdelete_new" name="u_delete[||new]" />
<label for="kronolithC<?php echo $type ?>PUdelete_new"><?php echo _("Delete") ?></label>
<input type="checkbox" id="kronolithC<?php echo $type ?>PUdel_new" name="u_delete[||new]" />
<label for="kronolithC<?php echo $type ?>PUdel_new"><?php echo _("Delete") ?></label>
</td>
<?php if ($type == 'internal'): ?>
<td>
Expand Down Expand Up @@ -260,8 +260,8 @@
<label for="kronolithC<?php echo $type ?>PGedit_new"><?php echo _("Edit") ?></label>
</td>
<td>
<input type="checkbox" id="kronolithC<?php echo $type ?>PGdelete_new" name="g_delete[||new]" />
<label for="kronolithC<?php echo $type ?>PGdelete_new"><?php echo _("Delete") ?></label>
<input type="checkbox" id="kronolithC<?php echo $type ?>PGdel_new" name="g_delete[||new]" />
<label for="kronolithC<?php echo $type ?>PGdel_new"><?php echo _("Delete") ?></label>
</td>
<?php if ($type == 'internal'): ?>
<td>
Expand Down

0 comments on commit 0dc9260

Please sign in to comment.