mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-11-30 00:07:30 +00:00
* feat: show what a member, group or service account can access Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: point the EE ref at the access view usage counters Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: name groups in the access view's permission error Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: map /access to the acls scope and list each group once A token with scopes was refused before reaching the access endpoint, and a member in a workspace group and an instance group of the same name got that group twice, which broke the drawer's keyed list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs: count every registered feature usage action Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: read the operating workspace and user in the access view GroupEditorDrawer is reachable from a session editor, where the navigation workspace and user are the parent's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test: cover a member reading their group's access Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: size the groups page loading rows like the loaded ones Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: open a group's access from the groups page Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: show access as a folder tree with links to each item Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: show a group's access to superadmins who are not workspace admins Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: accept instance groups as access view principals Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: update ee-repo-ref to c4e610999ca0d1abab06b1660cc48e486ab870b3 This commit updates the EE repository reference after PR #939 was merged in windmill-ee-private. Previous ee-repo-ref: da6bb1965702eb57237882e5fda6179f72294a06 New ee-repo-ref: c4e610999ca0d1abab06b1660cc48e486ab870b3 Automated by sync-ee-ref workflow. --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com>
26 lines
906 B
Rust
26 lines
906 B
Rust
pub mod access;
|
|
pub mod folder_history;
|
|
pub mod folders;
|
|
pub mod granular_acls;
|
|
pub mod groups;
|
|
|
|
use windmill_api_auth::ApiAuthed;
|
|
use windmill_common::{error::Error, worker::CLOUD_HOSTED};
|
|
|
|
/// The public demo workspace on the managed cloud is kept clean and consistent by
|
|
/// restricting folder creation, item sharing, and group creation for non-admins.
|
|
/// `action` is a short noun phrase completing "… is disabled …" (e.g.
|
|
/// "Folder creation", "Sharing"). Returns `Err(BadRequest)` when the caller is blocked.
|
|
pub fn check_demo_workspace_restriction(
|
|
authed: &ApiAuthed,
|
|
w_id: &str,
|
|
action: &str,
|
|
) -> Result<(), Error> {
|
|
if *CLOUD_HOSTED && w_id == "demo" && !authed.is_admin {
|
|
return Err(Error::BadRequest(format!(
|
|
"{action} is disabled in the demo workspace. Create your own workspace to keep the demo clean and consistent."
|
|
)));
|
|
}
|
|
Ok(())
|
|
}
|