Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 1.42.1 - 2025-07-24
- Issue 53243: add "includeEmptyPermGroups" to getGroupPermissions

### 1.42.0 - 2025-06-24
- Package updates
- Update ESLint configuration
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@labkey/api",
"version": "1.42.0",
"version": "1.42.1",
"description": "JavaScript client API for LabKey Server",
"scripts": {
"build": "npm run build:dist && npm run build:docs",
Expand Down
5 changes: 5 additions & 0 deletions src/labkey/security/Permission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ export interface GetGroupPermissionsOptions extends RequestCallbackOptions<Permi
* the current container path will be used.
*/
containerPath?: string;
/** Set to false to exclude groups that have no effective permissions (defaults to true) */
includeEmptyPermGroups?: boolean;
/** Set to true to recurse down the subfolders (defaults to false) */
includeSubfolders?: boolean;
}
Expand All @@ -65,6 +67,9 @@ export function getGroupPermissions(config: GetGroupPermissionsOptions): XMLHttp
if (config.includeSubfolders != undefined) {
params.includeSubfolders = config.includeSubfolders;
}
if (config.includeEmptyPermGroups != undefined) {
params.includeEmptyPermGroups = config.includeEmptyPermGroups;
}

return request({
url: buildURL('security', 'getGroupPerms.api', config.containerPath),
Expand Down