Skip to content

Commit

Permalink
Clarified comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
BurnyLlama committed Apr 21, 2024
1 parent 7ea4031 commit 527b974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/text/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ pub async fn text_edit(

let current_text = Text::get_by_id(db, text_id, false).await?;

// Only admins are allowed to publish on save.
// Only admins are allowed to edit publish status.
let should_publish = match claims.admin {
true => form.publish.unwrap_or(current_text.is_published),
false => current_text.is_published,
Expand Down

0 comments on commit 527b974

Please sign in to comment.