| @@ 119-135 (lines=17) @@ | ||
| 116 | ||
| 117 | } |
|
| 118 | ||
| 119 | public function complete() { |
|
| 120 | ||
| 121 | if (in_array('CN=Dashboard_Admin,OU=Dashboard_Group,OU=Intranet_Group,OU=Groups,DC=cant-col,DC=ac,DC=uk', $_SESSION['ldap']['groups'])) { |
|
| 122 | ||
| 123 | $function = 'complete_disposals'; |
|
| 124 | $this->user_model->function_log($function); |
|
| 125 | ||
| 126 | $this->disposals_model->complete_account(); |
|
| 127 | ||
| 128 | $this->load->view('templates/header'); |
|
| 129 | $this->load->view('computing-support/disposals/complete'); |
|
| 130 | $this->load->view('templates/footer'); |
|
| 131 | ||
| 132 | } else { |
|
| 133 | redirect('permissions'); |
|
| 134 | } |
|
| 135 | } |
|
| 136 | ||
| 137 | // If changed are made, duplicate in New_staff_export.php controller. |
|
| 138 | ||
| @@ 172-188 (lines=17) @@ | ||
| 169 | ||
| 170 | // If changed are made, duplicate in New_staff_export.php controller. |
|
| 171 | ||
| 172 | public function complete() { |
|
| 173 | ||
| 174 | if (in_array('CN=Dashboard_Admin,OU=Dashboard_Group,OU=Intranet_Group,OU=Groups,DC=cant-col,DC=ac,DC=uk', $_SESSION['ldap']['groups'])) { |
|
| 175 | ||
| 176 | $function = 'complete_staff_accounts_manual'; |
|
| 177 | $this->user_model->function_log($function); |
|
| 178 | ||
| 179 | $this->new_account_model->complete_account(); |
|
| 180 | ||
| 181 | $this->load->view('templates/header'); |
|
| 182 | $this->load->view('computing-support/new-account/complete'); |
|
| 183 | $this->load->view('templates/footer'); |
|
| 184 | ||
| 185 | } else { |
|
| 186 | redirect('permissions'); |
|
| 187 | } |
|
| 188 | } |
|
| 189 | ||
| 190 | // If changed are made, duplicate in New_staff_export.php controller. |
|
| 191 | ||