byterock / mojolicious-plugin-authorization

A plugin to make Authorization a bit easier
Other
8 stars 8 forks source link

`user_privs` callback signature looks wrong in documentation #12

Closed mrenvoize closed 7 years ago

mrenvoize commented 7 years ago

The documentation states the callback signature of the user_privs routine is:

sub {
    my ($app,$extradata) = @_;
    ...
    return $privileges;
}

But the code appears to call it as

sub {
    my ($app,$user,$extradata) = @_;
    ...
    return $privileges;
}
byterock commented 7 years ago

Ok I cleaned this up on the code side it was not impacting anything fortunetly