Initial commit,修正

This commit is contained in:
2025-07-13 19:37:38 +08:00
parent 38ce288e27
commit 65bbd06981
12384 changed files with 3985464 additions and 8 deletions
+27
View File
@@ -0,0 +1,27 @@
<?php
namespace mdm\admin\components;
use yii\rbac\Rule;
/**
* Description of GuestRule
*
* @author Misbahul D Munir <misbahuldmunir@gmail.com>
* @since 2.5
*/
class GuestRule extends Rule
{
/**
* @inheritdoc
*/
public $name = 'guest_rule';
/**
* @inheritdoc
*/
public function execute($user, $item, $params)
{
return $user->getIsGuest();
}
}