Resolve "Allow control over self-editing of person" #2208

Merged
hansegucker merged 3 commits from 245-allow-control-over-self-editing-of-person into master 2021-04-22 20:57:25 +02:00
Owner

Closes #245

Closes #245
Author
Owner

added 2 commits

  • 4ff47207 - Add preferences
  • 626ab6af - Trigger email

Compare with previous version

added 2 commits <ul><li>4ff47207 - Add preferences</li><li>626ab6af - Trigger email</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=6950&start_sha=7d0221763448976b8e24049771acf9fadcebef96)
Author
Owner

added 1 commit

Compare with previous version

added 1 commit <ul><li>e1650f50 - Trigger email</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=6952&start_sha=626ab6af3feed27eec90774c2534810aff1229bd)
Author
Owner

assigned to @nik and unassigned @debdolph

assigned to @nik and unassigned @debdolph
Author
Owner

added 1 commit

  • 4e887423 - Use syncable_fields

Compare with previous version

added 1 commit <ul><li>4e887423 - Use syncable_fields</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=6954&start_sha=e1650f50bc9ccb9d5e819283ea5cd7bd63a78014)
Author
Owner

added 1 commit

Compare with previous version

added 1 commit <ul><li>2fd6ad6e - Use syncable_fields</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=6955&start_sha=4e887423d7cb3bb945fb4a89c2cb98e0a8f7b3f0)
Author
Owner

added 1 commit

Compare with previous version

added 1 commit <ul><li>6d86bab1 - Disable fields in form</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=6956&start_sha=2fd6ad6ebc0b2da042861195197cc475f623e8bb)
Author
Owner

added 8 commits

  • 6d86bab1...466a6e29 - 7 commits from branch master
  • 83fc8097 - Merge branch 'master' into 245-allow-control-over-self-editing-of-person

Compare with previous version

added 8 commits <ul><li>6d86bab1...466a6e29 - 7 commits from branch <code>master</code></li><li>83fc8097 - Merge branch &#39;master&#39; into 245-allow-control-over-self-editing-of-person</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7163&start_sha=6d86bab10de99ecb64b3585b57d0061a3d017f20)
Author
Owner

added 1 commit

Compare with previous version

added 1 commit <ul><li>97e442b6 - Update lockfile</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7164&start_sha=83fc8097a14bb009e86085695931c794cba37875)
Author
Owner

added 1 commit

Compare with previous version

added 1 commit <ul><li>7d08be1c - Fix choices</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7168&start_sha=97e442b6acc8a28a6ad2c9fbd5fb11009e9b3fce)
Author
Owner

added 1 commit

Compare with previous version

added 1 commit <ul><li>0e4b12c8 - Disable fields correctly</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7172&start_sha=7d08be1c6241b126f3a5b3b64a2d798dac43ca6c)
Author
Owner

added 1 commit

Compare with previous version

added 1 commit <ul><li>a990b99b - Disable fields correctly</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7173&start_sha=0e4b12c8a4b4a896853b71f8b9c60fab7f61d50e)
Author
Owner

added 3 commits

  • 0e4b12c8 - Disable fields correctly
  • 7694db61 - Merge branch '245-allow-control-over-self-editing-of-person' of...
  • 3333d61a - Fix mail template

Compare with previous version

added 3 commits <ul><li>0e4b12c8 - Disable fields correctly</li><li>7694db61 - Merge branch &#39;245-allow-control-over-self-editing-of-person&#39; of...</li><li>3333d61a - Fix mail template</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7201&start_sha=a990b99bcd8622abde30ded54f628e6bff0b3235)
Author
Owner

marked this merge request as ready

marked this merge request as **ready**
Author
Owner

requested review from @hansegucker

requested review from @hansegucker
Owner
 {% blocktrans with person=person %}{{ person }} changed their data!{% endblocktrans %}
```suggestion:-0+0 {% blocktrans with person=person %}{{ person }} changed their data!{% endblocktrans %} ```
Owner

Is the following change an option?

        if self.instance.user and request.user == self.instance.user:

Also, please check if the form still works as a create form.

Is the following change an option? ```suggestion:-0+0 if self.instance.user and request.user == self.instance.user: ``` Also, please check if the form still works as a create form.
Owner

Missing docstring.

Missing docstring.
Owner

Missing docstring.

Missing docstring.
Owner

Missing docstring.

Also, we maybe should do this like in DataChecksEmailsRecipients and DataChecksEmailsRecipientGroups.

Missing docstring. Also, we **maybe** should do this like in `DataChecksEmailsRecipients` and `DataChecksEmailsRecipientGroups`.
Author
Owner

changed this line in version 12 of the diff

changed this line in [version 12 of the diff](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7335&start_sha=3333d61aacd0cea632265adc521cb513c8dfbefa#622da2712f4801473aba0b611c3232f8148ef126_145_145)
Author
Owner

added 18 commits

  • 3333d61a...29e673dd - 16 commits from branch master
  • df473854 - Merge branch 'master' into 245-allow-control-over-self-editing-of-person
  • e07a8fa9 - Fix creation of persons

Compare with previous version

added 18 commits <ul><li>3333d61a...29e673dd - 16 commits from branch <code>master</code></li><li>df473854 - Merge branch &#39;master&#39; into 245-allow-control-over-self-editing-of-person</li><li>e07a8fa9 - Fix creation of persons</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7335&start_sha=3333d61aacd0cea632265adc521cb513c8dfbefa)
Author
Owner

added 1 commit

Compare with previous version

added 1 commit <ul><li>32a135e4 - Fix creation of persons</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7336&start_sha=e07a8fa97eaa5f6fe570991a6c5d94855135913d)
Author
Owner

changed this line in version 14 of the diff

changed this line in [version 14 of the diff](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7338&start_sha=32a135e41410a047ef8d7b9ae3439025aeb2f2d9#7eca79a89fa3595b42d5a928862751ada32dd3a7_4_4)
Author
Owner

added 1 commit

  • 091e559d - Apply 1 suggestion(s) to 1 file(s)

Compare with previous version

added 1 commit <ul><li>091e559d - Apply 1 suggestion(s) to 1 file(s)</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7338&start_sha=32a135e41410a047ef8d7b9ae3439025aeb2f2d9)
Author
Owner

I don't think so. The recipient is not always a person or a group in AlekSIS.

I don't think so. The recipient is not always a person or a group in AlekSIS.
Author
Owner

added 1 commit

  • fe071e70 - Add missing docstrings

Compare with previous version

added 1 commit <ul><li>fe071e70 - Add missing docstrings</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7339&start_sha=091e559daf91cc2a1645dba1bf1fc97d4aeba17d)
Author
Owner

resolved all threads

resolved all threads
Author
Owner

added 1 commit

Compare with previous version

added 1 commit <ul><li>a9e12912 - Add missing docstrings</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7341&start_sha=fe071e70be09b2f6d553876eab98365bc168dc19)
Owner

approved this merge request

approved this merge request
Author
Owner

added 46 commits

  • a9e12912...b9fe9e08 - 45 commits from branch master
  • 1ff21d51 - Merge branch 'master' into 245-allow-control-over-self-editing-of-person

Compare with previous version

added 46 commits <ul><li>a9e12912...b9fe9e08 - 45 commits from branch <code>master</code></li><li>1ff21d51 - Merge branch &#39;master&#39; into 245-allow-control-over-self-editing-of-person</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7532&start_sha=a9e129127897d6b303393c7e50f9f09cfbcae80c)
Author
Owner

added 1 commit

  • c64671b6 - Merge branch 'master' into 245-allow-control-over-self-editing-of-person

Compare with previous version

added 1 commit <ul><li>c64671b6 - Merge branch &#39;master&#39; into 245-allow-control-over-self-editing-of-person</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7534&start_sha=1ff21d5179f7f9b67604cea1bac5bbbd58589190)
Author
Owner

added 1 commit

  • 52b900fc - Use rules

Compare with previous version

added 1 commit <ul><li>52b900fc - Use rules</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7537&start_sha=c64671b6b6e2094a112a92319aeb80be52867e62)
Author
Owner

added 1 commit

  • e8dc50c3 - Use rules

Compare with previous version

added 1 commit <ul><li>e8dc50c3 - Use rules</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7538&start_sha=52b900fc1ba9060c79b77a46b7c55aff6c31234a)
Author
Owner

added 1 commit

  • dbf51f9e - Use rules

Compare with previous version

added 1 commit <ul><li>dbf51f9e - Use rules</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7540&start_sha=e8dc50c31a6b996b816c7b86c006018ebc66d106)
Owner

marked this merge request as draft

marked this merge request as **draft**
Author
Owner

added 1 commit

Compare with previous version

added 1 commit <ul><li>e71f1ea9 - Use rules</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7541&start_sha=dbf51f9e9f34b259b7d92661a2206a5bd07137ad)
Author
Owner

added 1 commit

Compare with previous version

added 1 commit <ul><li>451fd6ae - Check rule in form</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7557&start_sha=e71f1ea92db50fd17c6ed69a9ad7e272334a49fe)
Author
Owner

added 1 commit

  • 3eb2fac7 - Check if current person is current user

Compare with previous version

added 1 commit <ul><li>3eb2fac7 - Check if current person is current user</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7558&start_sha=451fd6ae4636f26b46891c20276bdeb168b19157)
Author
Owner

marked this merge request as ready

marked this merge request as **ready**
Author
Owner

added 1 commit

  • 6631ab3b - Check if current person is current user

Compare with previous version

added 1 commit <ul><li>6631ab3b - Check if current person is current user</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7560&start_sha=3eb2fac7054ad4170f9e109fc35dc411e7c0c09c)
Owner

Please re-word to make clear that this checks the existence of a list item.

Please re-word to make clear that this checks the existence of a list item.
Owner

That's wrong. The code is independent of who the current user is.

That's wrong. The code is independent of who the current user is.
Owner

This must convey that this preference is about persons editing themselves.

This must convey that this preference is about persons editing **themselves**.
Owner

Use the edit_person rule here isntead.

Use the `edit_person` rule here isntead.
Owner

This must be combine wit ha check on whether the person is the same as the current user.

This must be combine wit ha check on whether the person is the same as the current user.
Author
Owner

changed this line in version 26 of the diff

changed this line in [version 26 of the diff](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7562&start_sha=6631ab3b8f80eca60a0a78de8f58203d53857c94#f18032ae09f8cc14c59919f1376970c13eb57713_137_137)
Author
Owner

changed this line in version 26 of the diff

changed this line in [version 26 of the diff](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7562&start_sha=6631ab3b8f80eca60a0a78de8f58203d53857c94#622da2712f4801473aba0b611c3232f8148ef126_144_144)
Author
Owner

changed this line in version 26 of the diff

changed this line in [version 26 of the diff](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7562&start_sha=6631ab3b8f80eca60a0a78de8f58203d53857c94#cedfd047579474194a5f10a12c798242313675da_284_284)
Author
Owner

changed this line in version 26 of the diff

changed this line in [version 26 of the diff](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7562&start_sha=6631ab3b8f80eca60a0a78de8f58203d53857c94#216f48f50c6758eba4a72b334fd1ea4e6af4b3c0_335_334)
Author
Owner

added 1 commit

  • 3bb850d2 - Fix naming issues

Compare with previous version

added 1 commit <ul><li>3bb850d2 - Fix naming issues</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7562&start_sha=6631ab3b8f80eca60a0a78de8f58203d53857c94)
Author
Owner

resolved all threads

resolved all threads
Author
Owner

resolved all threads

resolved all threads
Author
Owner

changed this line in version 27 of the diff

changed this line in [version 27 of the diff](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7563&start_sha=3bb850d27905e1fb39db659ffc8a21e2da11947e#216f48f50c6758eba4a72b334fd1ea4e6af4b3c0_336_336)
Author
Owner

added 1 commit

  • 043197eb - Fix naming issues

Compare with previous version

added 1 commit <ul><li>043197eb - Fix naming issues</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7563&start_sha=3bb850d27905e1fb39db659ffc8a21e2da11947e)
Owner

Please use permission prefetching.

Please use permission prefetching.
Owner

This needs to be comined with a check on the preference enabling/disabling editing of the person themselves.

This needs to be comined with a check on the preference enabling/disabling editing of the person themselves.
Owner

Use parantheses to make conjunction precedence clearer.

Use parantheses to make conjunction precedence clearer.
Author
Owner

changed this line in version 28 of the diff

changed this line in [version 28 of the diff](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7565&start_sha=043197ebd23d53c7d949ce886f977d046513df9c#216f48f50c6758eba4a72b334fd1ea4e6af4b3c0_73_73)
Author
Owner

changed this line in version 28 of the diff

changed this line in [version 28 of the diff](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7565&start_sha=043197ebd23d53c7d949ce886f977d046513df9c#216f48f50c6758eba4a72b334fd1ea4e6af4b3c0_337_336)
Author
Owner

added 1 commit

Compare with previous version

added 1 commit <ul><li>4c0c841f - Fix naming issues</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7565&start_sha=043197ebd23d53c7d949ce886f977d046513df9c)
Author
Owner

resolved all threads

resolved all threads
Author
Owner

added 1 commit

  • a8368f0a - Prefetch permissions

Compare with previous version

added 1 commit <ul><li>a8368f0a - Prefetch permissions</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7566&start_sha=4c0c841f9002e44c3927fa6696e99df7d89a2377)
Author
Owner

added 1 commit

  • 6fc69398 - Prefetch permissions

Compare with previous version

added 1 commit <ul><li>6fc69398 - Prefetch permissions</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7568&start_sha=a8368f0a48d9304915b0a1de0764be6d80a3744c)
Author
Owner

added 1 commit

  • 8d6e2051 - Prefetch permissions

Compare with previous version

added 1 commit <ul><li>8d6e2051 - Prefetch permissions</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7570&start_sha=6fc693986be00cae71336d5861624a7edbd4ae09)
Author
Owner

added 1 commit

  • 5b3c5679 - Prefetch permissions

Compare with previous version

added 1 commit <ul><li>5b3c5679 - Prefetch permissions</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7571&start_sha=8d6e205175040fade29005669ca5e3b22fcebae0)
Author
Owner

changed this line in version 33 of the diff

changed this line in [version 33 of the diff](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7573&start_sha=5b3c5679117bc780c4ef3be88b85cf194b05e125#622da2712f4801473aba0b611c3232f8148ef126_155_153)
Author
Owner

added 1 commit

Compare with previous version

added 1 commit <ul><li>54077d6f - Prefetch permissions</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7573&start_sha=5b3c5679117bc780c4ef3be88b85cf194b05e125)
Owner

assigned to @hansegucker and unassigned @nik

assigned to @hansegucker and unassigned @nik
Owner

requested review from @nik and removed review request for @hansegucker

requested review from @nik and removed review request for @hansegucker
Owner

approved this merge request

approved this merge request
Author
Owner

added 3 commits

  • 5f896c20 - Implement rules and predicates
  • 93ff633a - Add preferences
  • 92b9b545 - Check permissions and send mail if enabled

Compare with previous version

added 3 commits <ul><li>5f896c20 - Implement rules and predicates</li><li>93ff633a - Add preferences</li><li>92b9b545 - Check permissions and send mail if enabled</li></ul> [Compare with previous version](/AlekSIS/official/AlekSIS-Core/-/merge_requests/563/diffs?diff_id=7576&start_sha=54077d6fa9876778ef4496ab58a5c00fdcd152e2)
Owner

mentioned in commit c7fae2a048

mentioned in commit c7fae2a048f2c62468133dbad7b5ab120024cfdd
nik approved these changes 2026-07-30 18:34:23 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
aleksis/AlekSIS-Core!2208
No description provided.