Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-06-21 | Remove function superuser? | Ilja | |
Everything now happens with privileged?/2 | |||
2022-06-21 | Hide pleroma:report for non-privileged users | Ilja | |
Before we deleted the notifications, but that was a side effect and didn't always trigger any more. Now we just hide them when an unprivileged user asks them. | |||
2022-06-21 | Revert "Delete report notifs when demoting from superuser" | Ilja | |
This reverts commit 89667189b840fc79d85336739e6b2512684d7be0 and cdc5bbe8369d4fc66d642bb3e845a237d11e34d7. This is a side effect when changing user role. The goal was to not have report notifications when someone isn't admin or moderator any more. But this won't be triggered when we change the privilege tags for a role, so we can't use this sollution any more. There was another solution to filter out report notifications during fetch. It wasn't merged because this seemed 'cleaner' at the time, but now it seems the better sollution. I'll add it in the next commit. | |||
2022-06-21 | User.visible_for/2 | Ilja | |
According to the tests, this was only used for unconfirmed accounts. So this just needed to be restricted to users with privilege :user_activation | |||
2022-06-21 | Validator for deleting statusses is now done with priviledge instead of ↵ | Ilja | |
superuser | |||
2022-06-21 | delete statusses is now privileged by :status_delete | Ilja | |
Instead of superusers, you now need a role with privilige :status_delete to delete other users statusses I also cleaned up some other stuff I saw | |||
2022-06-21 | Add Pleroma.User.privileged?/2 | Ilja | |
This should eventually replace Pleroma.User.superuser?/1 | |||
2022-06-21 | Fix warning during test user_test.exs | Ilja | |
Fixed the warning [warning] Please change `clear_config([section], key: value)` to `clear_config([section, key], value)` | |||
2022-06-21 | Add last priviliges | Ilja | |
I still had three endpoints I didn't really know what to do with them. I added them under separate tags * :instance_delete * :moderation_log_read * :stats_read I also checked and these are the last changes done by MR https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3480/diffs this is trying to fix | |||
2022-06-21 | Add privilige :emoji_management | Ilja | |
2022-06-21 | Add privilige :status_delete | Ilja | |
It also allows to update a message, so it's not just deleting. I need a better name... | |||
2022-06-21 | last off :statuses_read | Ilja | |
From the endpoints left to do, I believe these should be under :statuses_read. These should be the last for that privilege for this MR | |||
2022-06-21 | Mark relevant tests synchronous | Ilja | |
One of the things we do during the tests is change the config. But that's global state and different tests were interfering. E.g. one test would set `clear_config([:instance, :admin_privileges], [:statuses_read])`, but while that runs, another test may do `clear_config([:instance, :admin_privileges], [:user_invite])`. Now the code for the first test checks the setting, and it finds `:user_invite` instead of `:statuses_read`. Now the modules where this happens are marked to run synchronously, so they don't interfere with each other. | |||
2022-06-21 | Add privileges for :user_read | Ilja | |
2022-06-21 | Add privileges for :report_handle | Ilja | |
2022-06-21 | Add privileges for :user_invite | Ilja | |
2022-06-21 | Add privileges for :user_activation | Ilja | |
2022-06-21 | Add privileges for :user_tag | Ilja | |
2022-06-21 | Remove privileged_staff | Ilja | |
Everything that was done through this setting, can now be set by giving the proper privileges to the roles. | |||
2022-06-21 | Add priviledges for :statuses_read | Ilja | |
This was the last in :require_privileged_staff. I'll remove that in the next commit | |||
2022-06-21 | Add priviledges for :user_credentials | Ilja | |
I only moved the ones from the :require_privileged_staff block for now | |||
2022-06-21 | Add privilege :user_deletion | Ilja | |
2022-06-21 | Add new setting and Plug to allow for privilege settings for staff | Ilja | |
2022-06-11 | Show original status at the first of history | Tusooa Zhu | |
2022-06-11 | Send the correct update in streamer | Tusooa Zhu | |
get_create_by_ap_id_with_object() seems to fetch the old object. Why this happens needs further investigation. | |||
2022-06-11 | Expose history and source apis to anon users | Tusooa Zhu | |
2022-06-09 | Fix incorrectly cached content after editing | Tusooa Zhu | |
2022-06-08 | Return the corresponding object id in attachment view | Tusooa Zhu | |
2022-06-08 | Add object id to uploaded attachments | Tusooa Zhu | |
2022-06-05 | Return update notification in mastodon api | Tusooa Zhu | |
2022-06-05 | Create Update notifications | Tusooa Zhu | |
2022-06-04 | Fix CommonAPITest | Tusooa Zhu | |
2022-06-04 | Expose content type of status sources | Tusooa Zhu | |
2022-06-03 | Fix SideEffectsTest | Tusooa Zhu | |
2022-06-03 | Show edited_at in MastodonAPI/show | Tusooa Zhu | |
2022-06-03 | Test that own edits are streamed | Tusooa Zhu | |
2022-06-03 | Stream out edits | Tusooa Zhu | |
2022-06-02 | Fix long report notes giving errors on creation | Tusooa Zhu | |
2022-06-01 | Inject history when object is refetched | Tusooa Zhu | |
2022-06-01 | Strip internal fields in formerRepresentation | Tusooa Zhu | |
2022-05-31 | Implement mastodon api for editing status | Tusooa Zhu | |
2022-05-31 | Add tlsv1.3 to suggestions | Pierre-Louis Bonicoli | |
2022-05-30 | AdminAPI: Allow filtering reports by rule_id | marcin mikołajczak | |
Signed-off-by: marcin mikołajczak <git@mkljczk.pl> | |||
2022-05-30 | Apply, suggestions, use strings for actual Mastodon API compatibility | marcin mikołajczak | |
Signed-off-by: marcin mikołajczak <git@mkljczk.pl> | |||
2022-05-30 | Implement viewing source | Tusooa Zhu | |
2022-05-29 | Implement mastodon api for showing edit history | Tusooa Zhu | |
2022-05-29 | Allow updating polls | Tusooa Zhu | |
2022-05-29 | Record edit history for Note and Question Updates | Tusooa Zhu | |
2022-05-29 | Handle Note and Question Updates | Tusooa Zhu | |
2022-05-29 | Allow Updates by every actor on the same origin | Tusooa Zhu | |