GIT.Harvie.CZ
/
mirrors
/
Kyberia-bloodline.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a793f4
)
registration permission fix
author
niekt0
<niekt0@kyberia.cz>
Mon, 16 Jan 2012 18:02:35 +0000
(19:02 +0100)
committer
niekt0
<niekt0@kyberia.cz>
Mon, 16 Jan 2012 18:02:35 +0000
(19:02 +0100)
wwwroot/backend/mysql/backend.inc
patch
|
blob
|
blame
|
history
diff --git
a/wwwroot/backend/mysql/backend.inc
b/wwwroot/backend/mysql/backend.inc
index 554ba63c37358dc693def85738493c7f5443d1a6..b45cdb395b3f666c450db16d7eed4e63eb7b475c 100644
(file)
--- a/
wwwroot/backend/mysql/backend.inc
+++ b/
wwwroot/backend/mysql/backend.inc
@@
-76,7
+76,7
@@
public static function addNode($params) {
$parent_permissions=permissions::checkPerms($parent_id);
- if (
!$parent_permissions['w']
) {
+ if (
(!$parent_permissions['w']) || ($params['flag']=='registration' )
) {
$error=$error_messages['WRITE_PERMISSION_ERROR'];
logger::log('add','error','WRITE_PERMISSION_ERROR');
return false;
This page took
0.219834 seconds
and
4
git commands to generate.