fix(deps): update dependency friendsofphp/php-cs-fixer to <3.23.1 (stable) (#2656)
* fix(deps): update dependency friendsofphp/php-cs-fixer to <3.23.1 * style: format files using php-cs-fixer --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: jo <ljonas@riseup.net>
This commit is contained in:
parent
a5cc52e9a9
commit
ab16cb47c5
9 changed files with 12 additions and 5 deletions
|
@ -116,9 +116,11 @@ class WebstreamController extends Zend_Controller_Action
|
|||
/*we are updating a playlist. Ensure that if the user is a
|
||||
host/dj, that he has the correct permission.*/
|
||||
$user = Application_Model_User::getCurrentUser();
|
||||
|
||||
// only allow when webstream belongs to the DJ
|
||||
return $webstream->getDbCreatorId() == $user->getId();
|
||||
}
|
||||
|
||||
/*we are creating a new stream. Don't need to check whether the
|
||||
DJ/Host owns the stream*/
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue