Skip to content
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

Make it possible to edit certain fields of a past event #227

Closed
psrpinto opened this issue Apr 19, 2024 · 2 comments · Fixed by #269
Closed

Make it possible to edit certain fields of a past event #227

psrpinto opened this issue Apr 19, 2024 · 2 comments · Fixed by #269
Assignees

Comments

@psrpinto
Copy link
Member

psrpinto commented Apr 19, 2024

Before the event has started, the hosts can edit:

  • Title
  • Description
  • Dates

After the event has started but no contributions:

  • Title
  • Description
  • Dates

After the event has started but with contributions:

  • Title
  • Description
  • Extend the end date

1 hour after the event has ended:

  • Title
  • Description
  • Extend the end date

After one hour after the event has ended, they can edit:

  • Description

Reflect updates by a message "This event was last updated x minutes ago", linking to a timeline.

@psrpinto
Copy link
Member Author

Related #215 (comment)

@akirk
Copy link
Member

akirk commented May 7, 2024

@trymebytes and I discussed that it would be best to implement it by introducing even more custom capabilities, for example edit_translation_event_title:

<input
    type="text"
    id="event-title"
    name="event_title"
    value="<?php echo esc_html( $event_title ); ?>"
    required
    size="42"
    <?php echo current_user_can( 'edit_translation_event_title', $event_id ) ?: 'readonly'; ?>
>

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 a pull request may close this issue.

3 participants