only check Achievements for default ToplevelAgent
This commit is contained in:
parent
2136db02e2
commit
7e05f4c24a
1 changed files with 5 additions and 1 deletions
|
|
@ -114,7 +114,6 @@
|
|||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Check user permissions.
|
||||
*
|
||||
|
|
@ -151,6 +150,11 @@
|
|||
*/
|
||||
private function checkAchievements(\nre\core\Request $request, \nre\core\Response $response)
|
||||
{
|
||||
// Do not check MediaController
|
||||
if($this->request->getParam('layout') != \nre\configs\AppConfig::$defaults['toplevel']) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Check if Character is present
|
||||
if(is_null(self::$character)) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue