Run self::fnNotFound() when no match found in access class
This commit is contained in:
parent
36f43c3e27
commit
fcb80c9f32
@ -59,12 +59,9 @@ final class Admin extends Access {
|
|||||||
case 'Album::getArchive': self::getAlbumArchiveAction(); break;
|
case 'Album::getArchive': self::getAlbumArchiveAction(); break;
|
||||||
case 'Photo::getArchive': self::getPhotoArchiveAction(); break;
|
case 'Photo::getArchive': self::getPhotoArchiveAction(); break;
|
||||||
|
|
||||||
// Error
|
|
||||||
default: self::fnNotFound(); break;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
self::fnNotFound();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,12 +31,9 @@ final class Guest extends Access {
|
|||||||
case 'Album::getArchive': self::getAlbumArchiveAction(); break;
|
case 'Album::getArchive': self::getAlbumArchiveAction(); break;
|
||||||
case 'Photo::getArchive': self::getPhotoArchiveAction(); break;
|
case 'Photo::getArchive': self::getPhotoArchiveAction(); break;
|
||||||
|
|
||||||
// Error
|
|
||||||
default: self::fnNotFound(); break;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
self::fnNotFound();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,12 +14,11 @@ final class Installation extends Access {
|
|||||||
|
|
||||||
case 'Config::create': self::configCreateAction(); break;
|
case 'Config::create': self::configCreateAction(); break;
|
||||||
|
|
||||||
// Error
|
|
||||||
default: self::initAction(); break;
|
default: self::initAction(); break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
self::fnNotFound();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user