Skip to content

Commit

Permalink
Few more random bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianAker committed Sep 30, 2002
1 parent 5ea3ae5 commit 7017d58
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/Zoo/templates/confirm;zoo;default
Expand Up @@ -84,7 +84,7 @@ Curious <A HREF="[% constants.rootdir %]/faq/com-mod.shtml#cm2200"> what these i


<INPUT TYPE="hidden" NAME="formkey" VALUE="[% form.formkey %]">
<INPUT TYPE="hidden" NAME="op" VALUE="add">
<INPUT TYPE="hidden" NAME="op" VALUE="action">
<INPUT TYPE="hidden" NAME="uid" VALUE="[% uid %]">
</FORM>

Expand Down
7 changes: 6 additions & 1 deletion plugins/Zoo/zoo.pl
Expand Up @@ -29,6 +29,11 @@ sub main {

# possible value of "op" parameter in form
my $ops = {
action => {
check => $user_ok,
formkey => ['formkey_check', 'valid_check'],
function => \&action
},
add => {
check => $user_ok,
formkey => ['formkey_check', 'valid_check'],
Expand Down Expand Up @@ -403,7 +408,7 @@ sub action {
print getData("no_go");
return;
} else {
if (testSocialized($zoo, $constants, $user) && ($form->{op} ne 'delete' || $form->{op} ne 'neutral')) {
if (testSocialized($zoo, $constants, $user) && ($form->{type} ne 'neutral' || $form->{op} eq 'delete' )) {
print getData("no_go");
return 0;
}
Expand Down

0 comments on commit 7017d58

Please sign in to comment.