By Philippe on Monday, 20 January 2020
Replies 4
Likes 0
Views 850
Votes 0
Hello,

The ACL settings do not allow to deactivate the addition of videos for Users, while retaining the addition of videos in Groups.

Which files I could modify for this ?
Allow group members to add a video
And at the same time do not allow Site Users (User Profile) to add a video


Maybe in a view.html.php file

Thank you
This is a non supported question and please do not post this in the technical issues category. I am moving this to a non supported category.
·
Monday, 20 January 2020 23:05
·
0 Likes
·
0 Votes
·
0 Comments
·
You should look into /modules/mod_easysocial_sidebar/tmpl/videos.php
·
Monday, 20 January 2020 23:07
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you. I understand, sorry.

However, I found an another solution.
In : /administrator/components/com_easysocial/includes/video/adapters/user.php

Replace :

public function allowCreation()
{
// We don't allow guest to upload video
if (!$this->my->id) {
return false;
}

$access = $this->my->getAccess();

if (!$access->allowed('videos.create')) {
return false;
}

if ($this->hasExceededLimit()) {
return false;
}

return true;
}
By :

public function allowCreation()
{
return false;
}

Philippe
·
Wednesday, 22 January 2020 01:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, this could work as well if you want to disable video uploads for user altogether
·
Friday, 31 January 2020 13:04
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post