Booked Scheduler Community Support
February 22, 2017, 12:59:03 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Booked 2.5 has been released!
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: All Upcoming Reservations for user  (Read 180 times)
dskjolly
Newbie
*

Karma: 0
Posts: 13


« on: January 18, 2017, 03:01:26 PM »

Is there a way to set 'All Upcoming Reservations' for a general user to be able to see past next week?
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 6384


WWW
« Reply #1 on: February 04, 2017, 12:33:26 AM »

So you want standard users to see all upcoming reservations for the week? There's no out of the box way to do this, but you can change line 49 in Presenters/DashboardPresenter.php to

if (true)

from

if (ServiceLocator::GetServer()->GetUserSession()->IsAdmin)

Logged
dskjolly
Newbie
*

Karma: 0
Posts: 13


« Reply #2 on: February 14, 2017, 02:14:11 PM »

Sorry, should have specified only all the users upcoming reservations. I was able to just add days to nextweek. Would not mind having Future Reservations section in the Dashboard. I know it can be seen in the Calendar.


line 60 in  UpcomingReservationsPresenter.php  change '$lastDate = $now->AddDays(13-$dayOfWeek-1);' -> '$lastDate = $now->AddDays(60-$dayOfWeek-1);'
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!