<?php
/**
 * PESCMS for PHP 5.4+
 *
 * Copyright (c) 2014 PESCMS (http://www.pescms.com)
 *
 * For the full copyright and license information, please view
 * the file LICENSE.md that was distributed with this source code.
 * @core version 2.6
 * @version 1.0
 */


namespace Slice\Team;

/**
 * 后台验证权限
 */
class Auth extends \Core\Slice\Slice{

    public function before() {
        $auth = \Model\Auth::check();
        if($auth !== true){
            $this->error($auth);
        }
    }

    public function after() {
    }


}