@applica-software-guru/react-admin 1.3.158 → 1.3.159

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applica-software-guru/react-admin",
3
- "version": "1.3.158",
3
+ "version": "1.3.159",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -19,7 +19,8 @@ const isInGroup = (group, resource) => resource.options?.group === group.id || (
19
19
 
20
20
  const hasPermission = (resource, permissions) => {
21
21
  const name = getResourceName(resource.name);
22
- const hasPermission = permissions?.includes(`${name}:list`);
22
+ // TODO: remove ":list" permssion when crud permission refactoring is complete
23
+ const hasPermission = permissions?.includes(`${name}:list`) || permissions?.includes(`${name}:find`);
23
24
  return hasPermission;
24
25
  };
25
26