Andy Allan
10a4c5cf6e
Rename Feeds::ChangesetCommentsController to ChangesetComments::FeedsController
...
We usually create nested controllers with the main controller as the module,
and the nested controller as the specialization, e.g. Users::DeletionsController
or Traces::IconsController.
This then leaves the topic of whether the feed resource is plural, and whether we
are then showing a singular feed or showing a list (index) of objects.
The routes are carefully named so that we have `changesets_comments_feed_path` (the
comments feed for all changesets) vs `changeset_comment_feed_path(changeset)` (the
comments for a singular changeset).
2024-08-28 18:31:36 +01:00
Anton Khorev
258104dfdf
Remove revoke block action
2024-08-23 13:34:08 +03:00
Anton Khorev
ae3e804ee6
Add update block ability with conditions
2024-08-22 14:01:54 +03:00
Milan Cvetkovic
0db47f3f76
Add Messages API
...
as discussed in [Issue #4509 ](https://wiki.openstreetmap.org/w/index.php?title=Messaging_API_proposal )
and documented in [Messaging API reference](https://wiki.openstreetmap.org/w/index.php?title=Messaging_API_proposal )
2024-07-29 10:42:38 +00:00
Anton Khorev
580daf06bd
Check diary entry edit/update ability using CanCanCan
2024-07-23 18:22:46 +03:00
Anton Khorev
00c2589374
Move diary comment action to comments controller
2024-07-12 17:58:43 +03:00
Anton Khorev
a128b4f585
Move diary comments hide/unhide actions to comments controller
2024-06-17 18:16:31 +03:00
Anton Khorev
6624beff11
Move diary comments index action to comments controller
2024-06-10 16:32:53 +03:00
Anton Khorev
765165777e
Rename api changesets index action
2024-03-30 08:26:58 +03:00
Anton Khorev
180a61bcc3
Move trace pictures/icons into their own controllers
2024-03-27 13:25:28 +03:00
Anton Khorev
54dec27949
Move current element actions to their own controllers
2024-03-15 03:24:45 +03:00
Tom Hughes
3b143dc2b4
Merge remote-tracking branch 'upstream/pull/4576'
2024-03-14 20:01:11 +00:00
Anton Khorev
d87d06fee5
Move element history actions to old element controllers
2024-03-14 18:10:18 +03:00
Anton Khorev
511ce4ab89
Collect node/way/relation CanCanCan subjects into arrays
2024-03-14 02:44:25 +03:00
Anton Khorev
cbf6b39464
Rename api element version action to show
2024-03-04 11:19:50 +03:00
Anton Khorev
c1b5ae0aa0
Move changeset show action to changesets controller
2024-03-01 10:48:30 +03:00
Tom Hughes
f0764d3eca
Add unsubscribe link to changeset notification mails
2024-02-25 09:48:11 +00:00
Anton Khorev
00123f05ba
Add relation version pages
2024-01-23 22:08:39 +03:00
Anton Khorev
2f222c49dd
Add way version pages
2024-01-23 22:08:39 +03:00
Anton Khorev
85c284aaa6
Add node version pages
2024-01-23 22:08:39 +03:00
Anton Khorev
2d358c9df2
Remove unnecessary api abilities
2024-01-17 02:57:08 +03:00
Anton Khorev
a0c1167f9a
Remove element web abilities that were copied to api
2024-01-14 02:24:27 +03:00
Anton Khorev
8682b58154
Add revoke all blocks link
2024-01-07 15:15:28 +03:00
Anton Khorev
daa2543511
Add oauth scope for redactions
2023-12-21 17:37:17 +03:00
Gregory Igelmund
efc61f1315
Add basic structures for UserMute and Message muting logic
...
Including models, migration, controllers, views & locales.
2023-12-19 12:57:47 -05:00
Andy Allan
4bca24a7be
Resourceful routing for passwords
...
This also matches the routes used by devise
2023-12-06 18:41:00 +00:00
Tom Hughes
efd2b92a80
Prevent unauthenticated users commenting on notes via the API
2023-11-23 16:56:07 +00:00
Anton Khorev
71654e563e
Add show user block api endpoint
2023-09-09 15:53:22 +03:00
Tom Hughes
7fb984f915
Allow moderator to unhide diary entries as well as hide them
2023-07-27 18:07:35 +01:00
Andy Allan
9748ce301c
Move browse#note to notes#show
...
This allows a more resourceful routing approach.
2023-02-01 17:13:41 +00:00
Andy Allan
b5046fdcd0
Move browse#new_note to notes#new
...
This allows a more resourceful routing approach.
2023-02-01 17:13:41 +00:00
Richard Fairhurst
b7887b049f
Remove Geonames and geocoder.ca
2023-01-09 21:23:48 +00:00
Tom Hughes
9cb7a7b36b
Don't allow any abilities for inactive users
2022-12-23 16:37:33 +00:00
Adam Hoyle
7e5cbe87ed
Merge branch 'master' into feature/add-communities-page
...
# Conflicts:
# Gemfile.lock
# package.json
# yarn.lock
2022-09-10 16:13:17 +01:00
Andy Allan
6c1d73a509
Allow users to delete their own accounts
...
This PR allows users to delete their own accounts. The logic implemented matches
that currently used by the admins when they manually close accounts, although
there is room to be more complex in future e.g. completely removing accounts
with no content.
The error handling has been slightly adapted for namespaced controllers, by
anchoring the controller name with a leading forward slash.
2022-02-09 16:15:24 +00:00
Andy Allan
4bed9c12a0
Fix display of suspension message when a user is suspended mid-session
...
Without the ability defined, the user is still logged out, but then
the deny_access check redirects to the login page. The re-login attempt
would then fail anyway, with an error message, but let's fix the abilities
and use the intended page.
2022-01-05 18:21:42 +00:00
Andy Allan
a8e8ba1a64
Refactor the account edit/update pages out into a separate accounts controller
2021-12-08 15:17:50 +00:00
Adam Hoyle
06c2db433d
Merge branch 'master' into feature/add-communities-page
2021-09-27 19:30:25 +01:00
Andy Allan
cb7b79a58f
Split the non-public information off of the profile page
...
This opens up many possibilities for more interesting things to be
shown on the dashboard, as well as making it easier to find if
you have lots of content in your profile.
2021-08-18 13:32:36 +01:00
Adam Hoyle
d8d1ab1776
add route for communities
2021-08-07 15:46:39 +01:00
Andy Allan
caf2e2a242
Move profile-related settings to their own form
...
Refs #3167
2021-07-14 17:45:19 +01:00
Andy Allan
2403630da8
Split user preferences into a separate page
...
Refs #3167
2021-07-14 17:40:20 +01:00
Tom Hughes
e222329d04
Add support for OAuth2 using doorkeeper
2021-05-18 12:05:32 +01:00
Andy Allan
094d6c8bb9
Move confirmation methods into ConfirmationsController
2021-04-07 16:05:32 +01:00
Andy Allan
7a66c6d4eb
Split password reset functionality into PasswordsController
2021-04-07 16:05:28 +01:00
Andy Allan
f18baae22e
Refactor login/logout into sessions controller
...
Certain controller methods are shared with oauth-based logins, and these have been
moved to a concern.
2021-03-24 11:32:46 +00:00
Andy Allan
41d6f19a6b
Rename the notes#mine action to index
2020-07-08 18:43:30 +02:00
Andy Allan
600812f6ad
Rework user#set_status and #delete to avoid GET requests
...
This renames the delete action to destroy, and starts using resourceful
routing for user actions.
2020-06-10 11:49:18 +02:00
Andy Allan
8ebfdbc1ff
Move make_friend and remove_friend to friendships controller
2020-06-03 18:23:07 +02:00
Andy Allan
f1c6a87aa1
Merge pull request #2427 from mmd-osm/patch/remove_expand_bbox
...
Remove expand_bbox endpoint
2019-12-04 12:48:34 +01:00