Menu

#1356 How to isaolate report module

open
nobody
None
1
2017-11-08
2017-11-08
No

Hi ,
1) How to remove help module from mrbs
2) How to isolate the Reparts and User list view for the normal users(this view should be only for the admin
3) Is there any way to change time intervals as of now we can book slots in mutiples of 30 mins . if incase some user wants to book slot for 10 mins or lessa than 30 mins . How ?

1 Attachments

Related

DO NOT USE - Support Requests: #1356

Discussion

  • Campbell Morrison

    (1) and (2) In mrbs_auth.inc set

    $page_level['help.php'] = 2;
    $page_level['report.php'] = 2;
    

    That will stop anybody except admins seeing those pages. You probably don't want to do the same thing for the User List link as that would stop people changing their own passwords. Instead, I suggest adding the following line to your config file:

    $auth['only_admin_can_see_other_users'] = true;
    

    This will mean that ordinary users can only see their own details.

    To remove the Help and Report menu items from the header then, assuming you are using MRBS 1.6.1, you need to edit the function print_nav() in Themes\default\header.inc. Delete the lines

        echo "<li>\n";
        print_help($query_string);
        echo "</li>\n";
    

    and replace the lines

        echo "<li>\n";
        print_report($query_string);
        echo "</li>\n";
    

    with

        global $max_level;
        $user = getUserName();
        $required_level = (isset($max_level) ? $max_level : 2);
        $is_admin = (authGetUserLevel($user) >= $required_level);
        if ($is_admin)
        {
          echo "<li>\n";
          print_report($query_string);
          echo "</li>\n";
        }
    

    (3) Change the resolution to 10 minutes. Go to the Rooms page, select the area you want to change, click the Edit icon and make the change.

     
    • Ramana Reddy

      Ramana Reddy - 2017-11-08

      thank you Campbell.

      Let me try with the changes suggested. I'll update you If I face any
      issues.

      On Wed, Nov 8, 2017 at 5:29 PM, Campbell Morrison cimorrison@users.sf.net
      wrote:

      (1) and (2) In mrbs_auth.inc set

      $page_level['help.php'] = 2;
      $page_level['report.php'] = 2;

      That will stop anybody except admins seeing those pages. You probably
      don't want to do the same thing for the User List link as that would stop
      people changing their own passwords. Instead, I suggest adding the
      following line to your config file:

      $auth['only_admin_can_see_other_users'] = true;

      This will mean that ordinary users can only see their own details.

      To remove the Help and Report menu items from the header then, assuming
      you are using MRBS 1.6.1, you need to edit the function print_nav() in
      Themes\default\header.inc. Delete the lines

      echo "<li>\n";    print_help($query_string);    echo "</li>\n";
      

      and replace the lines

      echo "<li>\n";
      print_report($query_string);
      echo "</li>\n";
      

      with

      global $max_level;
      $user = getUserName();
      $required_level = (isset($max_level) ? $max_level : 2);
      $is_admin = (authGetUserLevel($user) >= $required_level);
      if ($is_admin)
      {
        echo "<li>\n";
        print_report($query_string);
        echo "</li>\n";
      }
      

      (3) Change the resolution to 10 minutes. Go to the Rooms page, select the
      area you want to change, click the Edit icon and make the change.


      Status: open
      Group:
      Created: Wed Nov 08, 2017 07:42 AM UTC by Ramana Reddy
      Last Updated: Wed Nov 08, 2017 07:42 AM UTC
      Owner: nobody
      Attachments:

      Hi ,
      1) How to remove help module from mrbs
      2) How to isolate the Reparts and User list view for the normal users(this
      view should be only for the admin
      3) Is there any way to change time intervals as of now we can book slots
      in mutiples of 30 mins . if incase some user wants to book slot for 10 mins
      or lessa than 30 mins . How ?


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/mrbs/support-requests/1356/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      DO NOT USE - Support Requests: #1356

MongoDB Logo MongoDB