Skip to content

Commit

Permalink
feat(feeds): 增加动态和动态评论置顶申请验证用户密码
Browse files Browse the repository at this point in the history
medz committed Sep 29, 2018
1 parent b82139c commit 0a219db
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/slimkit-plus-feed/src/API2/NewPinnedController.php
Original file line number Diff line number Diff line change
@@ -24,6 +24,7 @@
use Illuminate\Http\Request;
use Zhiyi\Plus\Http\Controllers\Controller;
use Zhiyi\Plus\Models\Comment as CommentModel;
use Zhiyi\Plus\Http\Middleware\VerifyUserPassword;
use Zhiyi\Plus\Models\UserCount as UserCountModel;
use Zhiyi\Plus\Packages\Currency\Processes\User as UserProcess;
use Zhiyi\Component\ZhiyiPlus\PlusComponentFeed\Models\Feed as FeedModel;
@@ -34,6 +35,16 @@
*/
class NewPinnedController extends Controller
{
/**
* Create the controller instance.
*/
public function __construct()
{
$this
->middleware(VerifyUserPassword::class)
->only(['commentPinned', 'feedPinned']);
}

/**
* 申请动态评论置顶.
*

0 comments on commit 0a219db

Please sign in to comment.