Commit Graph

169 Commits

Author SHA1 Message Date
KodeStar 1c7ae3e335 Fix silent tile disappearance and ownership-reassignment bugs
Tiles could vanish without ever being deleted:

- Editing an item merged the editor's user_id into every save, so
  updating a visible item (e.g. a shared user_id=0 tile) silently
  reassigned ownership and hid it from everyone else. user_id is now
  set on create only, and excluded from update input in both Item and
  Tag controllers since it is mass-assignable.
- Deleting a user left their items orphaned with a dangling user_id,
  invisible to all users forever. The user's items are now hard-deleted
  with the account, and a data migration reassigns already-orphaned
  items to the admin user so previously "lost" tiles reappear.
- The Item global scope's ownership filter had an ungrouped orWhere,
  breaking operator precedence in any query that adds further clauses.

Includes regression coverage for ownership on create/update, user
deletion cleanup, and the orphan-recovery migration.
2026-07-09 10:52:29 +01:00
Tobias Kolzer c56ffe1d1e fixed some rebase conflicts 2025-05-05 11:49:18 +02:00
Chris Hunt 599035b3f8 Fix empty title when creating 2024-02-19 11:06:42 +00:00
Chris Hunt f3bc6ab618 Add tags to application list, and fix home dashboard tag 2024-02-19 10:58:19 +00:00
Shift f3a5be79dc Remove redundant typing from DocBlocks 2024-02-16 21:13:14 +00:00
Shift 3487f52a6b Add type hints from DocBlocks 2024-02-16 21:13:14 +00:00
Attila Kerekes df70dcc521 feat: Add tags as classes to items (#1079) 2022-12-19 14:40:38 +01:00
Attila Kerekes 5eb1f55b82 chore: Add php code sniffer github check (#1066) 2022-12-11 11:58:58 +01:00
Attila Kerekes 52620bc331 chore: Add laravel ide helper 2022-12-01 09:17:54 +00:00
Attila Kerekes bb5a078f35 feat: Add export import 2022-11-29 17:32:46 +00:00
Attila Jozsef Kerekes 7565bd4028 chore: Add php code sniffer and apply fixes 2022-11-25 23:05:58 +00:00
Attila Kerekes b390a719e9 refactor: apply auto fixes from idea 2022-11-14 14:48:38 +01:00
KodeStar 3117b9c483 Don't try to autoload file when checking if a class exists 2022-04-12 11:48:03 +01:00
KodeStar 9a6dd623db add tag_id to fillable to try and fix #810 2022-03-30 13:14:05 +01:00
Kode 74196a2bfa Check if class exists before checking if it's a search provider 2022-03-26 18:59:49 +00:00
Shift 0f498eca75 Remove explicit deleted_at date cast 2022-03-19 13:54:34 +00:00
Shift 297c2bb30f Shift bindings
PHP 5.5.9+ adds the new static `class` property which provides the fully qualified class name. This is preferred over using strings for class names since the `class` property references are checked by PHP.
2022-03-19 13:54:33 +00:00
Shift b1dc4d4a41 Apply Laravel coding style
Shift automatically applies the Laravel coding style - which uses the PSR-2 coding style as a base with some minor additions.

You may customize the adopted coding style by adding a [PHP CS Fixer][1] or [PHP CodeSniffer][2] config to your project root. Feel free to use [Shift's Laravel ruleset][3] to help you get started.

For more information on customizing the code style applied by Shift, [watch this short video][4].

[1]: https://github.com/FriendsOfPHP/PHP-CS-Fixer
[2]: https://github.com/squizlabs/PHP_CodeSniffer
[3]: https://gist.github.com/laravel-shift/cab527923ed2a109dda047b97d53c200
[4]: https://laravelshift.com/videos/shift-code-style
2022-03-19 13:54:32 +00:00
Kode becbe5ab96 More work on apps 2022-03-16 18:35:40 +00:00
Kode ed3dbf2f14 More work on enhanced apps 2022-03-15 20:09:22 +00:00
KodeStar 8499d100ff More work on apps 2022-03-15 18:19:01 +00:00
Kode e821edf01a Fix tags url
Fixes #763
2022-03-14 07:56:02 +00:00
Kode 96ec1e0b08 Fixes #435 2022-03-13 16:13:36 +00:00
KodeStar 736222e173 Merge pull request #614 from risiko79/fix/#507
FIX: #507 Tag URLs do not respect APP_URL
2022-03-11 20:23:34 +00:00
Kode 987a9c03b0 fix for double slash on views 2022-03-11 19:03:03 +00:00
risiko79 a5b7f10809 FIX: #507 Tag URLs do not respect APP_URL
see https://github.com/linuxserver/Heimdall/issues/507
2021-08-29 19:58:50 +02:00
Chris 3d181623c3 fix small issue 2019-06-18 13:41:02 +01:00
Kode fd2f7f27a6 Make home tag translatable 2019-06-13 19:07:38 +01:00
Kode 21b1ef5e4b fix pin toggle and get homepage dash working 2019-06-13 18:59:01 +01:00
Chris 1419882455 initial 2019-06-13 15:40:26 +01:00
Kode 4980bfab12 fix not protocol breaking adding for some reason 2019-03-30 23:10:00 +00:00
Chris cd64d762e7 additions to search 2019-01-18 15:21:50 +00:00
Chris f935fd94c6 initial work on seach changes 2019-01-16 14:47:32 +00:00
Chris fb2428e21b fixes #109 2019-01-16 14:20:33 +00:00
Chris b8f04f3d11 Fix preview and config not retaining values 2018-11-06 14:52:45 +00:00
Chris 125b9f4160 Some fixes and changes to run css 2018-10-30 14:58:45 +00:00
Kode 4fba596909 add enable button 2018-10-29 19:01:25 +00:00
Kode 4351f55225 updates 2018-10-28 10:59:59 +00:00
Chris 2b2d51cb6f changes 2018-10-23 15:53:56 +01:00
Kode 540bead0db Fix test button 2018-10-21 13:23:23 +01:00
Kode 6e9f25d680 Fixes 2018-10-21 12:39:12 +01:00
Chris 4fb59385b7 work on applications 2018-10-19 15:10:05 +01:00
Chris 6eda423156 Added mailcow, webmin and virtualmin 2018-10-17 10:27:05 +01:00
Kode 7d060ff803 Merge branch 'master' into Multi-user 2018-10-16 19:05:04 +01:00
KodeStar d5f8b6aae0 Merge pull request #257 from ABOTlegacy/Monica
Monica
2018-10-16 19:01:52 +01:00
Kode c3da17befc User specific items 2018-10-14 17:27:28 +01:00
Andy Bottom f5937879df Added Bitwarden to foundation apps. 2018-10-12 14:59:19 -05:00
Andy Bottom 93877b7025 Fixed spaces vs tabs. 2018-10-12 14:35:59 -05:00
Andy Bottom 6612631cc3 Added Monica to foundation apps. 2018-10-12 14:32:34 -05:00
Chris e86e681c53 Initial commit of multi user 2018-10-12 14:57:46 +01:00