Introduce Transient Permission in Access Controller#393
Introduce Transient Permission in Access Controller#393kingster-will merged 2 commits intostoryprotocol:mainfrom
Conversation
|
Hey @berndartmueller, |
Hey @kingster-will! Sure, I'm just a bit behind on chores, so please allow me some time to review it. I'll try to get to it next week. |
|
Hey @kingster-will! I reviewed the changes and have a question. I noticed that once a transient permission is set in the current tx, it's not possible anymore that a previously set (permanent) permission is used during this very same tx. |
Hey @berndartmueller , Yes, this is intentional. When the IP owner sets a one-time (transient) permission in the current transaction, all permanent permissions are ignored for that transaction. This prevents confusion when checking permissions by avoiding the combination of transient and permanent permissions, ensuring straightforward permission management. |
Description
This PR introduces transient permissions in the Access Controller, allowing users to set one-time use permissions that only take effect in the current transaction. This feature enhances the flexibility and security of the permission management system.
Key Changes