You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per title, i can't seems to configure this.
My goal is to create an public album allow anyone/anonymous to upload photos but disallow delete permission.
The text was updated successfully, but these errors were encountered:
publicfunctioncanUpload(User$user, ?AbstractAlbum$abstractAlbum = null): bool
{
// The upload right on the root album is directly determined by the user's capabilities.if ($abstractAlbum === null || !$abstractAlbuminstanceof BaseAlbum) {
return$user->may_upload;
}
return$this->isOwner($user, $abstractAlbum) ||
$abstractAlbum->current_user_permissions()?->grants_upload === true ||
$abstractAlbum->public_permissions()?->grants_upload === true;
}
You just need to find the line in the access_permissions table with the user_id = null and album = <albumID> and set grants_upload to 1.
^ that part you can probably already do.
As per title, i can't seems to configure this.
My goal is to create an public album allow anyone/anonymous to upload photos but disallow delete permission.
The text was updated successfully, but these errors were encountered: