Skip to content

Commit

Permalink
add granted_to details to README
Browse files Browse the repository at this point in the history
  • Loading branch information
Floppy committed Aug 29, 2024
1 parent 75e9463 commit 0ee7f4d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,14 @@ document.revoke_permission("viewer", user)
document.revoke_all_permissions(user)
```

### Finding objects

You can get lists of objects that a user has some permission on:

```
Document.granted_to "viewer", user
# => All the documents that user has "viewer" permission on
```

## Development

Expand Down

0 comments on commit 0ee7f4d

Please sign in to comment.