Commit 06928d3f authored by Francesc Guasch's avatar Francesc Guasch
Browse files

doc: new auth listing methods

parent 73e10f02
......@@ -632,7 +632,7 @@ sub _update_table_isos_url($self, $data) {
);
$sth_update->execute($entry->{$field}, $row->{id});
warn("INFO: updating $release $field '$row->{$field}' -> '$entry->{$field}'\n")
if !$FIRST_TIME_RUN && $0 !~ /\.t$/;
if $0 !~ /\.t$/;
}
}
}
......
......@@ -894,6 +894,12 @@ sub list_all_permissions($self) {
return @list;
}
=head2 grant_type
Returns the type of a grant. Currently only boolean and int are supported
=cut
sub grant_type($self, $permission) {
return $self->{_grant_type}->{$permission};
}
......@@ -1061,6 +1067,13 @@ sub grants($self) {
return %{$self->{_grant}};
}
=head2 grants_info
Returns a list of permissions and types granted to the user in a hash. Each entry
of the has has an arrayref containing the grant and the type.
=cut
sub grants_info($self) {
my %grants = $self->grants();
my %grants_info;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment