deep-foundation / deep-foundation/deeplinks

Rule created by a user with admin permissions not working

Open
#284 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
13
Forks
8
PR merge metrics
No merged PRs in 30d

Description

Description

If we create Rule as admin - the rule works. If we create a user and give it admin permissions by using join - the rule does not work

How to reproduce

Run https://github.com/deep-foundation/deeplinks/blob/41a72e72fd8d9b537e3ee5cb6478a5a6968dc85a/tests/permissions.ts#L339 test
By using the following command in deeplinks
```bash
npm run test -- --testNamePattern "action AllowInsertType, object Type, subject guest, rule created by user with admin permissions"
```

Additional Information

As I said in description if we do the same when logged in as admin - rules work. Tests that are passed successfuly:
- https://github.com/deep-foundation/deeplinks/blob/41a72e72fd8d9b537e3ee5cb6478a5a6968dc85a/tests/permissions.ts#L161
- https://github.com/deep-foundation/deeplinks/blob/41a72e72fd8d9b537e3ee5cb6478a5a6968dc85a/tests/permissions.ts#L250

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.