function checkGroupFolder($folder_id, $user_id){ if($this->isGroupFolder($folder_id)){ $statusgruppe_id = $this->getValue($folder_id, 'parent_id'); if(!isset($this->group_folders[$folder_id][$user_id])){ $this->group_folders[$folder_id][$user_id] = CheckUserStatusgruppe($statusgruppe_id, $user_id); } return $this->group_folders[$folder_id][$user_id]; } else { return true; } }
function CheckAssignRights($statusgruppe_id, $user_id, $seminar_id) { global $perm; list($self_assign_all, $self_assign_exclusive) = CheckSelfAssignAll($seminar_id); if (CheckSelfAssign($statusgruppe_id) && !CheckUserStatusgruppe($statusgruppe_id, $user_id) && !$perm->have_perm("admin") && $perm->have_perm("autor") && ((GetStatusgruppeLimit($statusgruppe_id)==FALSE) || (GetStatusgruppeLimit($statusgruppe_id) > CountMembersPerStatusgruppe($statusgruppe_id))) && !($self_assign_exclusive && in_array($user_id, GetAllSelected($seminar_id))) ) $assign = TRUE; else $assign = FALSE; return $assign; }