Session: fix values for session visibility constants - refs BT#21745

According to defined constants in api.lib.php
pull/5564/head
Angel Fernando Quiroz Campos 6 months ago
parent 9d8dbace34
commit 8b6860e5dd
  1. 7
      src/CoreBundle/Entity/Session.php

@ -109,10 +109,11 @@ use Symfony\Component\Validator\Constraints as Assert;
#[ApiFilter(filterClass: OrderFilter::class, properties: ['id', 'title'])]
class Session implements ResourceWithAccessUrlInterface, Stringable
{
public const VISIBLE = 1;
public const READ_ONLY = 2;
public const READ_ONLY = 1;
public const VISIBLE = 2;
public const INVISIBLE = 3;
public const AVAILABLE = 4;
public const STUDENT = 0;
public const DRH = 1;
public const COURSE_COACH = 2;
@ -398,8 +399,8 @@ class Session implements ResourceWithAccessUrlInterface, Stringable
public static function getStatusList(): array
{
return [
self::VISIBLE => 'status_visible',
self::READ_ONLY => 'status_read_only',
self::VISIBLE => 'status_visible',
self::INVISIBLE => 'status_invisible',
self::AVAILABLE => 'status_available',
];

Loading…
Cancel
Save