Browse Source

Added 'final' to access classes

Tobias Reich 8 years ago
parent
commit
36b1b40325
3 changed files with 3 additions and 3 deletions
  1. 1 1
      php/access/Admin.php
  2. 1 1
      php/access/Guest.php
  3. 1 1
      php/access/Installation.php

+ 1 - 1
php/access/Admin.php

@@ -8,7 +8,7 @@
 if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!');
 if (!defined('LYCHEE_ACCESS_ADMIN')) exit('Error: You are not allowed to access this area!');
 
-class Admin extends Access {
+final class Admin extends Access {
 
 	public function check($fn) {
 

+ 1 - 1
php/access/Guest.php

@@ -8,7 +8,7 @@
 if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!');
 if (!defined('LYCHEE_ACCESS_GUEST')) exit('Error: You are not allowed to access this area!');
 
-class Guest extends Access {
+final class Guest extends Access {
 
 	public function check($fn) {
 

+ 1 - 1
php/access/Installation.php

@@ -8,7 +8,7 @@
 if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!');
 if (!defined('LYCHEE_ACCESS_INSTALLATION')) exit('Error: You are not allowed to access this area!');
 
-class Installation extends Access {
+final class Installation extends Access {
 
 	public function check($fn) {