• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Array in an array, I think

#3
[eluser]mdcode[/eluser]
Thanks for your reply on this, but unfortunately it's something that is not acceptable in this situation. Part of the system is locked down by security whereby if a record is inserted into the database for the person's group, only people in that group are then able to edit or close the record.

This happens by this code (which is immaterial, just fyi):
Code:
$user_state = $this->session->userdata('home_state');
$user_division = $this->session->userdata('home_division');
$div_list = explode(',', $user_division);
$uid = $this->session->userdata('user_id');

if ( ( (in_array($complnt->div_id, $div_list) ) OR ( $user_division == 0 ) OR ($complnt->recorded_by == $uid) ) ) {

// display edit form

}
else
{

// display security error message

}

Any other ideas on the primary issue would also be greatfully received. Thanks.


Messages In This Thread
Array in an array, I think - by El Forum - 08-10-2009, 08:46 PM
Array in an array, I think - by El Forum - 08-10-2009, 09:21 PM
Array in an array, I think - by El Forum - 08-10-2009, 09:35 PM
Array in an array, I think - by El Forum - 08-10-2009, 09:46 PM
Array in an array, I think - by El Forum - 08-11-2009, 12:31 AM
Array in an array, I think - by El Forum - 08-11-2009, 12:50 AM
Array in an array, I think - by El Forum - 08-11-2009, 01:16 AM
Array in an array, I think - by El Forum - 08-11-2009, 05:28 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.