%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/varak.net/nextcloud.varak.net/apps_old/apps/cospend/lib/Attribute/
Upload File :
Create Path :
Current File : //www/varak.net/nextcloud.varak.net/apps_old/apps/cospend/lib/Attribute/CospendUserPermissions.php

<?php

declare(strict_types=1);

namespace OCA\Cospend\Attribute;

use Attribute;

#[Attribute]
class CospendUserPermissions {
	/**
	 * Attribute for controller methods that require Cospend user permission check
	 * This requires the method to have a $projectId parameter on which the current user permissions will be checked
	 * The UserPermissionMiddleware will check if the current user has at least the minimum level access to this project
	 */
	public function __construct(
		protected int $minimumLevel
	) {
	}

	public function getMinimumLevel(): int {
		return $this->minimumLevel;
	}
}

Zerion Mini Shell 1.0