Skip to content

Document Property Value - Read + Write Permissions#18756

Closed
madsrasmussen wants to merge 119 commits intov15/devfrom
v15/feature/property-visibility
Closed

Document Property Value - Read + Write Permissions#18756
madsrasmussen wants to merge 119 commits intov15/devfrom
v15/feature/property-visibility

Conversation

@madsrasmussen
Copy link
Member

@madsrasmussen madsrasmussen commented Mar 20, 2025

See details about the feature in the draft documentation article. It includes a description and example of how to use, extend and customize the feature.

https://github.com/umbraco/UmbracoDocs/pull/6971/files?short_path=93f9264#diff-93f9264506f9d27acf518670cb4e6ca8a55aae8a3c4baf44e59c55e5bea60ac8

@madsrasmussen madsrasmussen marked this pull request as ready for review March 25, 2025 13:52
Copy link
Contributor

@AndyButland AndyButland left a comment

Choose a reason for hiding this comment

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

I've restricted my review to back-end code - which all looks great - and testing the feature - which also works nicely.

Spotted a related issue on the front-end - but probably not from the changes here. If you click to edit an existing document granular permission, you don't see the previous selection. Rather it's reset to the default for the group. Maybe you'll want to treat that as a separate issue though.

@madsrasmussen
Copy link
Member Author

@AndyButland Thanks! Good catch. I'll look into it and create another PR so it doesn't get lost in this one.

private _ownerEntityType?: string;

@state()
_propertyViewStateIsRunning = true;
Copy link
Member

Choose a reason for hiding this comment

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

Maybe I'm super annoying now 😬, but shouldn't it be called read then it also corresponds well with read-only

Copy link
Member Author

Choose a reason for hiding this comment

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

Are you refering to the "View state" in general?

@madsrasmussen
Copy link
Member Author

@AndyButland fix PR here: #18815

nielslyngsoe and others added 3 commits April 1, 2025 09:38
* add read only state

* handle read only property state in properties element

* prevent editing shared props on non default

* enforce configuration

* clean up

* set variant id

* move to property module

---------

Co-authored-by: Niels Lyngsø <nsl@umbraco.dk>
# Conflicts:
#	src/Umbraco.Infrastructure/Migrations/Upgrade/UmbracoPlan.cs
#	src/Umbraco.Web.UI.Client/src/packages/documents/documents/publishing/schedule-publish/workspace-action/manifests.ts
@nielslyngsoe nielslyngsoe marked this pull request as draft April 4, 2025 13:08
@nielslyngsoe
Copy link
Member

Replace by #18997

@madsrasmussen madsrasmussen deleted the v15/feature/property-visibility branch April 12, 2025 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants