芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/public_html/invoicer.pulsehost.co.uk/vendor/barryvdh/ChecksRoles.php
authority = $authority; $this->clipboard = $clipboard; } /** * Check if the authority has any of the given roles. * * @param string ...$roles * @return bool */ public function a(...$roles) { return $this->clipboard->checkRole($this->authority, $roles, 'or'); } /** * Check if the authority doesn't have any of the given roles. * * @param string ...$roles * @return bool */ public function notA(...$roles) { return $this->clipboard->checkRole($this->authority, $roles, 'not'); } /** * Alias to the "a" method. * * @param string ...$roles * @return bool */ public function an(...$roles) { return $this->clipboard->checkRole($this->authority, $roles, 'or'); } /** * Alias to the "notA" method. * * @param string ...$roles * @return bool */ public function notAn(...$roles) { return $this->clipboard->checkRole($this->authority, $roles, 'not'); } /** * Check if the authority has all of the given roles. * * @param string ...$roles * @return bool */ public function all(...$roles) { return $this->clipboard->checkRole($this->authority, $roles, 'and'); } }