#265 Different room manager fof approval only

open
nobody
None
9
2015-05-28
2014-04-16
Anonymous
No

Hi all,
would be nice to have userd identified as "approver" without being admins. Different users for different room.
Regards.

Red.
P.S. great software and project ;-)

Discussion

  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2014-05-16

    I'd like that feature too

     
  • Alberto Ledo

    Alberto Ledo - 2015-05-28

    Hello. For me, [php-imap authentication] was enough with the solution:

    File Themes/default/header.inc

    from line 185 replace/add:

          // EL administrador de la aplicación ve todas las reservas pendientes
          if ($user == 'ADMIN_MRBS')
          {
              $sql = $sql;
          }
          else {
    
          if (!$is_admin)
          {
            // Ordinary users can only see their own
            $sql .= " AND create_by='" . sql_escape($user) . "'";
          }
    
          // Adminitradores solo ven las reservas que administran
          if ($is_admin)
          {
            $sql .= " AND (R.room_admin_email LIKE'%" . sql_escape($user) . "@%'
                        OR A.area_admin_email LIKE'%" . sql_escape($user) . "@%') ";
    
          }
    
          }
    

    File pending.php:

    from line 223 replace/add:

    // EL administrador de la aplicación ve todas las reservas pendientes
    if ($user == 'ADMIN_MRBS')
    {
    $sql = $sql;
    }
    else {

    if (!$is_admin)
    {
        // Ordinary users can only see their own
        $sql .= " AND E.create_by='" . sql_escape($user) . "'";
    }
    
    // Adminitradores solo ven las reservas que administran
    if ($is_admin)
    {
        $sql .= " AND (M.room_admin_email LIKE'%" .sql_escape($user) . "@%'
                    OR A.area_admin_email LIKE'%" . sql_escape($user) ."@%') ";
    
    }
    
     
    Last edit: Alberto Ledo 2015-05-28


Anonymous

Cancel  Add attachments





Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks