OneBot: Leantime 改造版源码(BOM/Univer 表格/AI 接管/品牌替换等)
This commit is contained in:
34
app/Domain/Connector/Controllers/Providers.php
Normal file
34
app/Domain/Connector/Controllers/Providers.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace Leantime\Domain\Connector\Controllers;
|
||||
|
||||
use Leantime\Core\Controller\Controller;
|
||||
use Leantime\Domain\Auth\Models\Roles;
|
||||
use Leantime\Domain\Auth\Services\Auth;
|
||||
|
||||
class Providers extends Controller
|
||||
{
|
||||
/**
|
||||
* constructor - initialize private variables
|
||||
*/
|
||||
public function init()
|
||||
{
|
||||
Auth::authOrRedirect([Roles::$owner, Roles::$admin, Roles::$manager, Roles::$editor]);
|
||||
}
|
||||
|
||||
/**
|
||||
* get - handle get requests
|
||||
*/
|
||||
public function get($params)
|
||||
{
|
||||
return $this->tpl->displayPartial('connectors.providers');
|
||||
}
|
||||
|
||||
/**
|
||||
* post - handle post requests
|
||||
*/
|
||||
public function post($params)
|
||||
{
|
||||
return $this->tpl->displayPartial('connectors.providers');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user