Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core): allow defining permissions for the app commands #9008

Merged
merged 10 commits into from
Feb 28, 2024

Conversation

lucasfernog
Copy link
Member

Current ACL only applies to plugin commands. This PR adds a mechanism to autogenerate permissions for the app commands - though it needs to be manually provided by the user :( - and also pull permission from a directory, similar to how plugin permissions work.

By default all app commands are still allowed, so if you do not use tauri_build::Attributes::app_manifest you're not affected by this change.

@lucasfernog lucasfernog requested a review from a team as a code owner February 27, 2024 17:57
@lucasfernog lucasfernog requested review from tweidinger and removed request for a team February 27, 2024 17:58
}
let mut acl_manifests = acl::get_manifests_from_plugins()?;
acl_manifests.insert(
"".into(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems sort of magical key and can be easily forgot about? we should add an explicit field or marker for it

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you're right, pushed

@lucasfernog lucasfernog merged commit 3657ad8 into dev Feb 28, 2024
26 checks passed
@lucasfernog lucasfernog deleted the feat/app-permissions branch February 28, 2024 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants