42 Commits

Author SHA1 Message Date
Klaus Zanders c212df5b81 Use more visible scoping for users 2026-02-09 15:07:45 +01:00
Oliver Günther f9c1bcaeaa Fix sharing inviting of users depending on project set 2025-10-23 12:59:57 +02:00
Pavel Balashou 1323927095 [#65068] Add deleted status to user.
https://community.openproject.org/work_packages/65068
2025-08-27 09:53:37 +02:00
Alexander Brandon Coles f15be6e07f Freeze string literals in app/controllers
rubocop -A --only Style/FrozenStringLiteralComment,Layout/EmptyLineAfterMagicComment,Style/RedundantFreeze app/controllers
2025-07-18 17:51:00 +01:00
Jan Sandbrink f824b479e8 Merge DialogStreamHelper into ComponentStream
The former depended 100% on the latter anyways and there
was no clear separation of concerns between the two. For
example ComponentStream had methods to close a dialog.
Thus it made sense to merge the two.
2025-06-20 08:14:49 +02:00
Ivan Kuchin 4911b8a149 remove years from copyrights (except for COPYRIGHT file) 2024-07-31 15:02:49 +02:00
Klaus Zanders 852a8326fb Merge branch 'release/14.3' into sharing-tests 2024-07-11 16:40:35 +02:00
Klaus Zanders 5d5f4d6a08 Fix shares being appended to the wrong element 2024-07-11 10:55:11 +02:00
Klaus Zanders f7cef0e471 Move enterprise check into the sharing strategy 2024-07-11 08:38:33 +02:00
Klaus Zanders 2934ebd733 Only send custom invite message when sharing work packages 2024-07-11 08:11:36 +02:00
Klaus Zanders e0e5ad617f Fix rendering updated user details 2024-07-10 10:18:00 +02:00
Klaus Zanders ae1654d5eb Do not add owner when we show groups 2024-07-10 08:42:34 +02:00
Klaus Zanders 9ab9603fe2 Fix some more rendering calls 2024-07-09 17:43:46 +02:00
Klaus Zanders 4bd51fe266 Move loading of shares to the strategy 2024-07-09 17:07:13 +02:00
Klaus Zanders e61ce5c9ae Merge pull request #16036 from opf/switch-empty-state
Switch empty state when public flag is toggled
2024-07-09 16:25:33 +02:00
Klaus Zanders 9e26d806c9 Show the actionmenu and a hint about why you are not able to change 2024-07-09 09:06:05 +02:00
Klaus Zanders 15e3f69af6 Move loading of shares into the strategy 2024-07-09 08:21:17 +02:00
Klaus Zanders 4020db70a1 Fix copyright notices that still mention 2023 2024-07-03 07:40:59 +02:00
Klaus Zanders e4da1d0754 Add custom permission checks based on SharingStrategy 2024-07-02 13:41:25 +02:00
Klaus Zanders b4927ccac6 Correctly pass all arguments for render calls 2024-07-02 10:02:16 +02:00
Klaus Zanders e3f2cc273c Only pass strategy into the modal and modal body 2024-07-01 17:11:11 +02:00
Klaus Zanders ee78a83fd9 BaseStrategy to show what can be implemented 2024-07-01 15:35:10 +02:00
Klaus Zanders 540e1b411b Allow filtering entity_type to ProjectQuery 2024-07-01 10:23:26 +02:00
Klaus Zanders 30139b99c6 EntityMemberQuery -> NonInheritedMemberQuery 2024-07-01 10:09:42 +02:00
Klaus Zanders 708e5aed23 Introduce SharingStrategy concept to not litter the controller with case statements 2024-07-01 10:07:09 +02:00
Klaus Zanders 8cd4f8cae5 Disable cops 2024-06-27 10:46:23 +02:00
Aaron Contreras 48a3aec647 Render sharing modal for project lists 2024-06-27 09:53:18 +02:00
Klaus Zanders 65f5232a4e Fix loading of concern 2024-06-27 09:53:18 +02:00
Klaus Zanders 0a45c94c7e Add a dialog method so we can dynamically initialize the modal 2024-06-27 09:53:17 +02:00
Klaus Zanders 1cde8f614a Fix Rubocop issues 2024-06-27 09:51:30 +02:00
Klaus Zanders 72809b1b7d More i18n string changes 2024-06-27 09:51:27 +02:00
Klaus Zanders 884b71f760 Move I18n out of the work package scope and properly load permissions 2024-06-27 09:51:26 +02:00
Klaus Zanders b0fcda8c36 op-whare-wp -> op-share-dialog and use renamed controller 2024-06-27 09:51:25 +02:00
Aaron Contreras 36f6685a80 Extract permission check for share management to controller concern 2024-06-27 09:51:23 +02:00
Aaron Contreras b318231c20 Inject permission checks from controller 2024-06-27 09:51:22 +02:00
Klaus Zanders 39cf34655e Generalize contracts and services for sharing 2024-06-27 09:51:19 +02:00
Klaus Zanders 5727f1bec6 Put bulk behavior into the SharesController 2024-06-27 09:51:15 +02:00
Klaus Zanders 2c64cef030 Add available_roles and move everything to entity 2024-06-27 09:51:14 +02:00
Klaus Zanders 95910211c9 Remove work package specific loading in SharesController and use entity 2024-06-27 09:51:12 +02:00
Klaus Zanders abcbf57657 WorkPackageMemberQuery -> EntityMemberQuery 2024-06-27 09:51:11 +02:00
Klaus Zanders cb9ccc92c9 Reorganize sharing components outside of the WorkPackage scope 2024-06-27 09:51:10 +02:00
Klaus Zanders 5a9963ffa5 Move the controller into general space 2024-06-27 09:51:05 +02:00