Skip to content

Commit

Permalink
wip: services do not support slash
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiejol committed Apr 18, 2024
1 parent e5a40a2 commit d93f471
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/js/booking/booking.services.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function svcLDAP($resource) {
list_groups: {
method: 'GET',
isArray: true,
params: { action: 'group/ldap/list'}
params: { action: 'group_ldap_list'}
}
});
}
Expand All @@ -38,7 +38,7 @@ function svcLocal($resource) {
list_groups: {
method: 'GET',
isArray: true,
params: { action: 'group/local/list'}
params: { action: 'group_local_list'}
}
});
}
11 changes: 11 additions & 0 deletions script/rvd_front
Original file line number Diff line number Diff line change
Expand Up @@ -1686,6 +1686,17 @@ get '/group/#type/list/#filter' => sub($c) {
return _group_list($c);
};

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

get '/group_ldap_list'=> 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 d93f471

Please sign in to comment.