summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e114a65)
raw | patch | inline | side by side (parent: e114a65)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 15 Oct 2008 13:31:40 +0000 (13:31 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 15 Oct 2008 13:31:40 +0000 (13:31 +0000) |
- Use parent dn for new object's ACL check
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12711 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12711 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/gosa-plugins/fai/admin/fai/class_faiHook.inc b/gosa-plugins/fai/admin/fai/class_faiHook.inc
index a8c845fdf99ea9ee65c6658e077623737db8dae2..6778811fb4bfd420e72a37469cb3cf9df757a926 100644 (file)
function acl_base_for_current_object($dn)
{
- if($dn == "new"){
+ if($dn == "new" || $dn == ""){
if($this->dn == "new"){
$dn = session::get('CurrentMainBase');
}else{
diff --git a/gosa-plugins/fai/admin/fai/class_faiPartitionTable.inc b/gosa-plugins/fai/admin/fai/class_faiPartitionTable.inc
index 216369159799f70a22cde830a8c84d0480e8477f..eac75522a0ed88d522d730b979a4b4000e64d082 100644 (file)
function acl_base_for_current_object($dn)
{
- if($dn == "new"){
+ if($dn == "new" || $dn == ""){
if($this->dn == "new"){
$dn = session::get('CurrentMainBase');
}else{
diff --git a/gosa-plugins/fai/admin/fai/class_faiProfile.inc b/gosa-plugins/fai/admin/fai/class_faiProfile.inc
index 8e08c7635340d9031c6a12590f51fef242f2285d..e6c007efbff6626a5674652118cbfa01f31926d2 100644 (file)
function acl_base_for_current_object($dn)
{
- if($dn == "new"){
+ if($dn == "new" || $dn == ""){
if($this->dn == "new"){
$dn = session::get('CurrentMainBase');
}else{
diff --git a/gosa-plugins/fai/admin/fai/class_faiScript.inc b/gosa-plugins/fai/admin/fai/class_faiScript.inc
index 6e5ee1ce58c7f5cbb425dc00f17837e34ba7c1e1..2488e4c545599677ea6a45c032eae424d69d0984 100644 (file)
/* Return a valid dn to fetch acls. Because 'new' will not work. */
function acl_base_for_current_object($dn)
{
- if($dn == "new"){
+ if($dn == "new" || $dn == ""){
if($this->dn == "new"){
$dn= "cn=dummy,".session::get('CurrentMainBase');
}else{
diff --git a/gosa-plugins/fai/admin/fai/class_faiTemplate.inc b/gosa-plugins/fai/admin/fai/class_faiTemplate.inc
index 8325cce888947faef4551e28ed0dacfb733157f0..0b7eddc7ad49930bad8179a7dd3f40d56a400e2e 100644 (file)
function acl_base_for_current_object($dn)
{
- if($dn == "new"){
+ if($dn == "new" || $dn == ""){
if($this->dn == "new"){
$dn = session::get('CurrentMainBase');
}else{
diff --git a/gosa-plugins/fai/admin/fai/class_faiVariable.inc b/gosa-plugins/fai/admin/fai/class_faiVariable.inc
index 36e01de5a8eafb9eb507c25736b795c2ef2d5cb5..7c7f3f69a5e1d2a3dc7584d0ecfb46de31ca1233 100644 (file)
function acl_base_for_current_object($dn)
{
- if($dn == "new"){
+ if($dn == "new" || $dn == ""){
if($this->dn == "new"){
$dn = session::get('CurrentMainBase');
}else{