Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
bat_api
Commits
2115de68
Commit
2115de68
authored
Mar 09, 2016
by
Nicolò Caruso
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix permission name
parent
e85ce562
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
bat_api.module
bat_api.module
+1
-1
No files found.
bat_api.module
View file @
2115de68
...
...
@@ -566,7 +566,7 @@ function bat_api_services_events_index($target_ids, $target_types, $target_entit
$end_date_object
=
new
DateTime
(
$end_date
);
$today
=
new
DateTime
();
if
(
!
user_access
(
'view past
availability
information'
)
&&
$today
>
$start_date_object
)
{
if
(
!
user_access
(
'view past
event
information'
)
&&
$today
>
$start_date_object
)
{
if
(
$today
>
$end_date_object
)
{
$return
->
events
=
array
();
return
$return
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment