-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15016 from snipe/improved_user_merge
Fixed #15005 - Improvements on user merge
- Loading branch information
Showing
10 changed files
with
481 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -481,8 +481,6 @@ public function assetlog() | |
/** | ||
* Establishes the user -> uploads relationship | ||
* | ||
* @todo I don't think we use this? | ||
* | ||
* @author A. Gianotto <[email protected]> | ||
* @since [v3.0] | ||
* @return \Illuminate\Database\Eloquent\Relations\Relation | ||
|
@@ -496,6 +494,21 @@ public function uploads() | |
->orderBy('created_at', 'desc'); | ||
} | ||
|
||
/** | ||
* Establishes the user -> acceptances relationship | ||
* | ||
* @author A. Gianotto <[email protected]> | ||
* @since [v7.0.7] | ||
* @return \Illuminate\Database\Eloquent\Relations\Relation | ||
*/ | ||
public function acceptances() | ||
{ | ||
return $this->hasMany(\App\Models\Actionlog::class, 'target_id') | ||
->where('target_type', self::class) | ||
->where('action_type', '=', 'accepted') | ||
->orderBy('created_at', 'desc'); | ||
} | ||
|
||
/** | ||
* Establishes the user -> requested assets relationship | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.