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

Allow users to edit proposals after imports #233

Open
microstudi opened this issue Aug 23, 2023 · 0 comments · May be fixed by #234
Open

Allow users to edit proposals after imports #233

microstudi opened this issue Aug 23, 2023 · 0 comments · May be fixed by #234
Assignees

Comments

@microstudi
Copy link
Contributor

microstudi commented Aug 23, 2023

If you import proposals from one component to another (using the import feature) image
then, none the original or the imported proposals can be edited by their original authors (this only applies if the option "keep original authors" is active).

This restriction is done by the method

def editable_by?(user)
  return true if draft? && created_by?(user)

  !published_state? && within_edit_time_limit? && !copied_from_other_component? && created_by?(user)
end

Where the copied_from_other_component? affects either the imported or the original

Solution
Let's add a configuration variable to allow authors edit either the imported or the original proposals after an import:
image
(this image needs to add the constrains button too. This would allow to use this feature in certain places only).

@antopalidi antopalidi self-assigned this Aug 25, 2023
@antopalidi antopalidi linked a pull request Aug 25, 2023 that will close this issue
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.

2 participants