Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Antoine
ae2
Commits
1a71eb67
Commit
1a71eb67
authored
Jun 03, 2014
by
Bate
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Probleme de droit sur les fichiers
parent
16d95389
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
include/entities/basedb.inc.php
include/entities/basedb.inc.php
+4
-2
No files found.
include/entities/basedb.inc.php
View file @
1a71eb67
...
...
@@ -104,6 +104,10 @@ abstract class basedb extends stdentity
*/
function
is_right
(
&
$user
,
$required
)
{
if
(
(
$this
->
modere
!=
0
)
&&
((
$required
&
(
$this
->
droits_acces
))
==
$required
)
)
return
true
;
if
(
!
$user
->
is_valid
())
return
false
;
if
(
$this
->
is_admin
(
$user
))
return
true
;
if
(
!
is_null
(
$this
->
id_utilisateur
)
&&
...
...
@@ -114,8 +118,6 @@ abstract class basedb extends stdentity
if
(
(
$user
->
is_in_group_id
(
$this
->
id_groupe
))
&&
(
$required
&
(
$this
->
droits_acces
>>
4
))
==
$required
)
return
true
;
//ce teste merde quand on est pas connecté !!!
if
(
(
$required
&
(
$this
->
droits_acces
))
==
$required
)
return
true
;
return
false
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment