#
# COPYRIGHT:
#
-# This software is Copyright (c) 1996-2014 Best Practical Solutions, LLC
+# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC
# <sales@bestpractical.com>
#
# (Except where explicitly superseded by other copyright notices)
bind_values => [ $type ],
action => sub {
my $id = shift;
- return unless my $a = prompt_action( ['Delete', 'create'], $msg );
+ return unless my $a = prompt_action( ['Create', 'delete'], $msg );
if ( $a eq 'd' ) {
delete_record( $table, $id );
action => sub {
my $id = shift;
return unless prompt(
- 'Create', "Found an user that has no ACL equivalence group."
+ 'Create', "Found a user that has no ACL equivalence group."
);
my $gid = create_record( 'Groups',
action => sub {
my $id = shift;
return unless prompt(
- 'Delete', "Found an user ACL equivalence group, but there is no user."
+ 'Delete', "Found a user ACL equivalence group, but there is no user."
);
delete_record( 'Groups', $id );
my $token = shift || join ':', caller;
return '' unless $opt{'resolve'};
- return '' if $opt{'force'};
+ return lc substr $actions->[0], 0, 1 if $opt{'force'};
return $cached_answer{ $token } if exists $cached_answer{ $token };
print $msg, "\n";