mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 19:37:23 +08:00
add clear shout box
This commit is contained in:
@@ -123,3 +123,11 @@ function consumeBenefit($params)
|
||||
$rep = new \App\Repositories\UserRepository();
|
||||
return $rep->consumeBenefit($CURUSER['id'], $params);
|
||||
}
|
||||
|
||||
function clearShoutBox($params)
|
||||
{
|
||||
global $CURUSER;
|
||||
user_can('sbmanage', true);
|
||||
\Nexus\Database\NexusDB::table('shoutbox')->delete();
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user