summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 08a988a)
raw | patch | inline | side by side (parent: 08a988a)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 11 Oct 2010 08:02:23 +0000 (08:02 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 11 Oct 2010 08:02:23 +0000 (08:02 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19963 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/groupware/personal/groupware/class_Groupware.inc | patch | blob | history | |
gosa-plugins/groupware/personal/groupware/class_folderTest.inc | patch | blob | history |
diff --git a/gosa-plugins/groupware/personal/groupware/class_Groupware.inc b/gosa-plugins/groupware/personal/groupware/class_Groupware.inc
index 96ff20891e0c02d7f7a1a4bffa6a2629bf9fd771..98ad80af9dbf3239ee9eb65c7b85c2309ab5c290 100644 (file)
*/
# Access constants
-define ("GROUPWARE_LOOKUP", 1);
-define ("GROUPWARE_READ", 2);
-define ("GROUPWARE_STATUS", 4);
-define ("GROUPWARE_WRITE", 8);
-define ("GROUPWARE_INSERT", 16);
-define ("GROUPWARE_POST", 32);
-define ("GROUPWARE_CREATE", 64);
-define ("GROUPWARE_DELETE", 128);
-define ("GROUPWARE_ADMINISTRATE", 256);
-
-
-define ("GROUPWARE_RIGHTS_NONE", 0);
-define ("RIGHTS_GROUPWARE_READ", GROUPWARE_LOOKUP | GROUPWARE_READ | GROUPWARE_STATUS);
-define ("RIGHTS_GROUPWARE_POST", RIGHTS_GROUPWARE_READ | GROUPWARE_POST);
-define ("GROUPWARE_RIGHTS_APPEND", RIGHTS_GROUPWARE_POST | GROUPWARE_INSERT);
-define ("RIGHTS_GROUPWARE_WRITE", GROUPWARE_RIGHTS_APPEND | GROUPWARE_WRITE | GROUPWARE_CREATE | GROUPWARE_DELETE);
-define ("GROUPWARE_RIGHTS_ALL", RIGHTS_GROUPWARE_WRITE | GROUPWARE_ADMINISTRATE);
+if(!defined("GROUPWARE_LOOKUP")){
+ define ("GROUPWARE_LOOKUP", 1);
+ define ("GROUPWARE_READ", 2);
+ define ("GROUPWARE_STATUS", 4);
+ define ("GROUPWARE_WRITE", 8);
+ define ("GROUPWARE_INSERT", 16);
+ define ("GROUPWARE_POST", 32);
+ define ("GROUPWARE_CREATE", 64);
+ define ("GROUPWARE_DELETE", 128);
+ define ("GROUPWARE_ADMINISTRATE", 256);
+
+
+ define ("GROUPWARE_RIGHTS_NONE", 0);
+ define ("RIGHTS_GROUPWARE_READ", GROUPWARE_LOOKUP | GROUPWARE_READ | GROUPWARE_STATUS);
+ define ("RIGHTS_GROUPWARE_POST", RIGHTS_GROUPWARE_READ | GROUPWARE_POST);
+ define ("GROUPWARE_RIGHTS_APPEND", RIGHTS_GROUPWARE_POST | GROUPWARE_INSERT);
+ define ("RIGHTS_GROUPWARE_WRITE", GROUPWARE_RIGHTS_APPEND | GROUPWARE_WRITE | GROUPWARE_CREATE | GROUPWARE_DELETE);
+ define ("GROUPWARE_RIGHTS_ALL", RIGHTS_GROUPWARE_WRITE | GROUPWARE_ADMINISTRATE);
+}
diff --git a/gosa-plugins/groupware/personal/groupware/class_folderTest.inc b/gosa-plugins/groupware/personal/groupware/class_folderTest.inc
index c41bd7240c27e3502bdc1d26738024206dae4f46..d9815c78a40af2b16821f67872194697e763bf7c 100644 (file)
<?php
-define ("GROUPWARE_LOOKUP", 1);
-define ("GROUPWARE_READ", 2);
-define ("GROUPWARE_STATUS", 4);
-define ("GROUPWARE_WRITE", 8);
-define ("GROUPWARE_INSERT", 16);
-define ("GROUPWARE_POST", 32);
-define ("GROUPWARE_CREATE", 64);
-define ("GROUPWARE_DELETE", 128);
-define ("GROUPWARE_ADMINISTRATE", 256);
+if(!defined("GROUPWARE_LOOKUP")){
-define ("GROUPWARE_RIGHTS_NONE", 0);
-define ("RIGHTS_GROUPWARE_READ", GROUPWARE_LOOKUP | GROUPWARE_READ | GROUPWARE_STATUS);
-define ("RIGHTS_GROUPWARE_POST", RIGHTS_GROUPWARE_READ | GROUPWARE_POST);
-define ("GROUPWARE_RIGHTS_APPEND", RIGHTS_GROUPWARE_POST | GROUPWARE_INSERT);
-define ("RIGHTS_GROUPWARE_WRITE", GROUPWARE_RIGHTS_APPEND | GROUPWARE_WRITE | GROUPWARE_CREATE | GROUPWARE_DELETE);
-define ("GROUPWARE_RIGHTS_ALL", RIGHTS_GROUPWARE_WRITE | GROUPWARE_ADMINISTRATE);
+ define ("GROUPWARE_LOOKUP", 1);
+ define ("GROUPWARE_READ", 2);
+ define ("GROUPWARE_STATUS", 4);
+ define ("GROUPWARE_WRITE", 8);
+ define ("GROUPWARE_INSERT", 16);
+ define ("GROUPWARE_POST", 32);
+ define ("GROUPWARE_CREATE", 64);
+ define ("GROUPWARE_DELETE", 128);
+ define ("GROUPWARE_ADMINISTRATE", 256);
+ define ("GROUPWARE_RIGHTS_NONE", 0);
+ define ("RIGHTS_GROUPWARE_READ", GROUPWARE_LOOKUP | GROUPWARE_READ | GROUPWARE_STATUS);
+ define ("RIGHTS_GROUPWARE_POST", RIGHTS_GROUPWARE_READ | GROUPWARE_POST);
+ define ("GROUPWARE_RIGHTS_APPEND", RIGHTS_GROUPWARE_POST | GROUPWARE_INSERT);
+ define ("RIGHTS_GROUPWARE_WRITE", GROUPWARE_RIGHTS_APPEND | GROUPWARE_WRITE | GROUPWARE_CREATE | GROUPWARE_DELETE);
+ define ("GROUPWARE_RIGHTS_ALL", RIGHTS_GROUPWARE_WRITE | GROUPWARE_ADMINISTRATE);
+}
class FolderTest extends plugin
{