Commit 540df5df authored by Bate's avatar Bate

Les non connectes n'ont pas droit que de lire les fichiers

parent 1a9574d6
...@@ -106,8 +106,8 @@ abstract class basedb extends stdentity ...@@ -106,8 +106,8 @@ abstract class basedb extends stdentity
{ {
if(!$user->is_valid()) { if(!$user->is_valid()) {
echo "Droits: $required vs ".($required & $this->droits_access)." vs $this->droits_access"; echo "Droits: $required vs ".($required & $this->droits_acces)." vs $this->droits_acces";
if($required == DROIT_LECTURE && (($required & $this->droits_access) == $required)) if($required == DROIT_LECTURE && (($required & $this->droits_acces) == $required))
{ {
return true; return true;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment