byterock / mojolicious-plugin-authorization

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

`user_role` callback signature appears to be wrong in documentation #13

Closed mrenvoize closed 7 years ago

mrenvoize commented 7 years ago

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

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

But the code appears to call it as

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

Ok this is fixed in the code fortunetly it had not impact