summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 59265d5)
raw | patch | inline | side by side (parent: 59265d5)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 21 Jul 2006 04:57:10 +0000 (04:57 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 21 Jul 2006 04:57:10 +0000 (04:57 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4263 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/posix/class_posixAccount.inc | patch | blob | history | |
plugins/personal/posix/main.inc | patch | blob | history |
diff --git a/plugins/personal/posix/class_posixAccount.inc b/plugins/personal/posix/class_posixAccount.inc
index 018d6ec04d7c23ca4a19b68d167db777566b7f8d..30f32f375ec2dc05cb4447920e18c2d15a60e980 100644 (file)
if (isset($_POST['add_groups_finish']) && isset($_POST['groups']) &&
count($_POST['groups'])){
- /* FIX ME put the acl check into addGroup function*/
+ echo "FIXME, 302, put the acl check into addGroup function ";
#if (chk acl ($this->acl, "memberUid") == ""){
# $this->addGroup ($_POST['groups']);
# $this->is_modified= TRUE;
if (isset($_POST['delete_groupmembership']) &&
isset($_POST['group_list']) && count($_POST['group_list'])){
- /* FIX ME put the acl check into addGroup function*/
+ echo "FIXME, 302, put the acl check into addGroup function ";
#if (chk acl ($this->acl, "memberUid") == ""){
# $this->delGroup ($_POST['group_list']);
# $this->is_modified= TRUE;
function remove_from_parent()
{
/* Cancel if there's nothing to do here */
- if (!$this->initially_was_account){
+ if ((!$this->initially_was_account) || (!$this->acl_is_removeable())){
return;
}
/* Save values to object */
plugin::save_object();
+
/* Save force GID checkbox */
- if (isset ($_POST['force_ids'])){
- $data= 1;
- } else {
- $data= 0;
- }
- if ($this->force_ids != $data){
- $this->is_modified= TRUE;
+ if($this->acl_is_writeable("gidNumber") || $this->acl_is_writeable("uidNumber")){
+ if (isset ($_POST['force_ids'])){
+ $data= 1;
+ } else {
+ $data= 0;
+ }
+ if ($this->force_ids != $data){
+ $this->is_modified= TRUE;
+ }
+ $this->force_ids= $data;
}
- $this->force_ids= $data;
-
/*Save primary group settings */
if($this->acl_is_writeable("primaryGroup") && isset($_POST['primaryGroup'])){
index 105ad7b9696afd67d659399708002a9894040431..1de7f0286b7b10cc089b4dca18283b5d8ef10104 100644 (file)
}
/* Show page footer depending on the mode */
- if (!$posixAccount->group_dialog && $posixAccount->is_account){
+ if (!$posixAccount->group_dialog && !$posixAccount->show_ws_dialog && $posixAccount->is_account){
$display.= "<p class=\"plugbottom\">";