Lines 49-56
if ( $op and $op eq "cud-close" ) {
Link Here
|
49 |
# the subscription must be deletable if there is NO issues for a reason or another (should not happened, but...) |
49 |
# the subscription must be deletable if there is NO issues for a reason or another (should not happened, but...) |
50 |
|
50 |
|
51 |
# Permission needed if it is a deletion (del) : delete_subscription |
51 |
# Permission needed if it is a deletion (del) : delete_subscription |
|
|
52 |
# Permission needed if closing or reopenning : edit_subscription |
52 |
# Permission needed otherwise : * |
53 |
# Permission needed otherwise : * |
53 |
my $permission = ($op eq "cud-del") ? "delete_subscription" : "*"; |
54 |
my $permission; |
|
|
55 |
if ( $op eq "cud-del" ) { |
56 |
$permission = "delete_subscription"; |
57 |
} |
58 |
elsif ( $op eq "cud-reopen" || $op eq "cud-close" ) { |
59 |
$permission = "edit_subscription"; |
60 |
} |
61 |
else { |
62 |
$permission = "*"; |
63 |
} |
64 |
|
54 |
|
65 |
|
55 |
my ($template, $loggedinuser, $cookie) |
66 |
my ($template, $loggedinuser, $cookie) |
56 |
= get_template_and_user({template_name => "serials/subscription-detail.tt", |
67 |
= get_template_and_user({template_name => "serials/subscription-detail.tt", |
57 |
- |
|
|