Run self::fnNotFound() when no match found in access class

This commit is contained in:
Tobias Reich 2016-02-13 23:34:24 +01:00
parent 36f43c3e27
commit fcb80c9f32
3 changed files with 3 additions and 10 deletions

View File

@ -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();
} }

View File

@ -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();
} }

View File

@ -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();
} }