Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
06928d3f
Commit
06928d3f
authored
Aug 27, 2021
by
Francesc Guasch
Browse files
doc: new auth listing methods
parent
73e10f02
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/Ravada.pm
View file @
06928d3f
...
...
@@ -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$/
;
}
}
}
...
...
lib/Ravada/Auth/SQL.pm
View file @
06928d3f
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment