Skip to content

Commit

Permalink
wip: filter groups
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiejol committed Apr 18, 2024
1 parent b5616b6 commit a00f16d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions script/rvd_front
Original file line number Diff line number Diff line change
Expand Up @@ -1696,6 +1696,15 @@ get '/group_ldap_list'=> sub($c) {
return _group_list($c);
};

get '/group_local_list/#filter'=> sub($c) {
$c->stash(type => 'local');
return _group_list($c);
};

get '/group_ldap_list/#filter'=> sub($c) {
$c->stash(type => 'ldap');
return _group_list($c);
};

sub _group_list($c, $data=0) {
return access_denied($c) unless $USER->can_view_groups || $USER->can_manage_groups;
Expand Down

0 comments on commit a00f16d

Please sign in to comment.