Skip to content

Commit

Permalink
Update entryPoints.js to use permissionClasses instead of permission …
Browse files Browse the repository at this point in the history
…property (#191)

- Update entryPoints.js to use permissionClasses instead of permission property
- Remove entryPoints.js permission props for generateLib since they don't apply for libs
  • Loading branch information
cnathe authored and labkey-adam committed Aug 1, 2024
1 parent a4839b8 commit 772c7a7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
6 changes: 3 additions & 3 deletions reactExamples/resources/views/demoWebpart.view.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<view xmlns="http://labkey.org/data/xml/view" frame="none" title="To-Do List Webpart">
<permissions>
<permission name="read"/>
</permissions>
<permissionClasses>
<permissionClass name="org.labkey.api.security.permissions.ReadPermission"/>
</permissionClasses>
<dependencies>
<dependency path="gen/demoWebpart"/>
</dependencies>
Expand Down
9 changes: 4 additions & 5 deletions reactExamples/src/client/entryPoints.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,27 @@ module.exports = {
apps: [{
name: 'helloWorld',
title: 'Hello World Page',
permission: 'read',
permissionClasses: ['org.labkey.api.security.permissions.ReadPermission'],
path: './src/client/HelloWorldPage'
},{
name: 'todoList',
title: 'To-Do List Page',
permission: 'insert',
permissionClasses: ['org.labkey.api.security.permissions.InsertPermission'],
path: './src/client/ToDoListPage'
},{
name: 'demoWebpart',
title: 'To-Do List Webpart',
permission: 'read',
path: './src/client/ToDoListPage/webpart',
generateLib: true // used by views/demoWebpart.html
},{
name: 'queryModel',
title: 'QueryModel Example Page',
permission: 'read',
permissionClasses: ['org.labkey.api.security.permissions.ReadPermission'],
path: './src/client/QueryModelPage'
},{
name: 'fileAttachmentForm',
title: 'File Attachment Example Page',
permission: 'insert',
permissionClasses: ['org.labkey.api.security.permissions.InsertPermission'],
path: './src/client/FileAttachmentPage'
}]
};

0 comments on commit 772c7a7

Please sign in to comment.