Skip to content

[plan A] fix: new user group error in without replication #271

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

Closed

Conversation

Samler-Lee
Copy link
Contributor

@Samler-Lee Samler-Lee commented Jun 29, 2025

#270
cloudreve/cloudreve#2592

Added the default storage policy (id=1), refer to backend:

// Create
if group.StoragePolicyID > 0 {
	stm.SetStoragePolicyID(group.StoragePolicyID)
}

The logical judgment conditions for new group and update group. Maybe this should be corrected?

// UpdateOne
if group.Edges.StoragePolicies != nil && group.Edges.StoragePolicies.ID > 0 {
	stm.SetStoragePolicyID(group.Edges.StoragePolicies.ID)
}

If feasible, refer to: #272, cloudreve/cloudreve#2596

@Samler-Lee Samler-Lee changed the title fix: new user group error in without replication [plan A] fix: new user group error in without replication Jun 29, 2025
@HFO4 HFO4 closed this Jun 30, 2025
@Samler-Lee Samler-Lee deleted the fix-new-user-group-patch-1 branch June 30, 2025 12:56
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