diff --git a/src/Serverfireteam/Panel/config/elfinder.php b/src/Serverfireteam/Panel/config/elfinder.php index a3d6610..cebfb12 100644 --- a/src/Serverfireteam/Panel/config/elfinder.php +++ b/src/Serverfireteam/Panel/config/elfinder.php @@ -1,16 +1,6 @@ getAppNamespace(); } -} \ No newline at end of file + + public static function validName($name) { + return strpos($name, '.') !== 0; + } + + public static function access($attr, $path, $data, $volume) { + if (strpos(basename($path), '.') === 0) { + return !($attr == 'read'); + } else { + return null; + } + } +} diff --git a/tests/ResetPasswordTest.php b/tests/ResetPasswordTest.php index 9dd4881..a2840a3 100755 --- a/tests/ResetPasswordTest.php +++ b/tests/ResetPasswordTest.php @@ -14,7 +14,7 @@ public function test_reset_password() ->type('12345', 'password') ->press('Login') ->see('Dashboard') - ->click('Reset Password') + ->click('Change Password') ->type('admin@change.me', 'email') ->type('ooooo', 'current_password') ->type('pppppp', 'password') @@ -27,7 +27,7 @@ public function test_reset_password() ->type('12345', 'password') ->press('Login') ->see('Dashboard') - ->click('Reset Password') + ->click('Change Password') ->type('admin@change.me', 'email') ->type('12345', 'current_password') ->type('pppppp', 'password') @@ -40,7 +40,7 @@ public function test_reset_password() ->type('12345', 'password') ->press('Login') ->see('Dashboard') - ->click('Reset Password') + ->click('Change Password') ->type('admin@change.me', 'email') ->type('12345', 'current_password') ->type('pppppp', 'password')