mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-28 10:53:40 +03:00
Add a missing condition on permissions in Calendar.php
This commit is contained in:
parent
80e52ca36d
commit
bc0de8ec53
1 changed files with 7 additions and 0 deletions
|
@ -494,6 +494,13 @@ class Calendar extends EA_Controller {
|
|||
{
|
||||
try
|
||||
{
|
||||
$required_permissions = can('view', PRIV_APPOINTMENTS);
|
||||
|
||||
if ( ! $required_permissions)
|
||||
{
|
||||
throw new RuntimeException('You do not have the required permissions for this task.');
|
||||
}
|
||||
|
||||
$start_date = request('start_date') . ' 00:00:00';
|
||||
|
||||
$end_date = request('end_date') . ' 23:59:59';
|
||||
|
|
Loading…
Reference in a new issue