feat: Implement document permission handling and sharing features
This commit is contained in:
@@ -28,3 +28,9 @@ type DocumentShareWithUser struct {
|
||||
DocumentShare
|
||||
User User `json:"user"`
|
||||
}
|
||||
|
||||
// PermissionResponse represents the user's permission level for a document
|
||||
type PermissionResponse struct {
|
||||
Permission string `json:"permission"` // "view" or "edit"
|
||||
Role string `json:"role"` // "owner", "editor", or "viewer"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user