original_string: public function isAllowed($module, $privilege): bool
      {
          if ($privilege) {
              $user = Auth::getIdentity();
              return $user && $user->hasPrivilege($module, $privilege);
          }
          return true;
      }
code: public function isAllowed($module, $privilege): bool
      {
          if ($privilege) {
              $user = Auth::getIdentity();
              return $user && $user->hasPrivilege($module, $privilege);
          }
          return true;
      }
code_tokens: public function isAllowed ( $ module , $ privilege ) : bool { if ( $ privilege ) { $ user = Auth :: getIdentity ( ) ; return $ user && $ user -> hasPrivilege ( $ module , $ privilege ) ; } return true ; }
docstring: Check user access by pair module-privilege
  
  @param  string $module
  @param  string $privilege
  
  @return bool
docstring_tokens: Check user access by pair module - privilege