I developed a TV Input Type to Upload serveral Files depending to a Resource.
Everything works fine for the Administrator User Group.
I created another User Group Editor with restricted rights. The Policies 'create', 'file_upload' ... are checked. Then I created a Media Source which is assigned to the TV.
Now, when I try to Upload a file the Ajax Response from the Upload Processor in (core/model/ modx/processors/browser/file/upload.class.php) is permission_denied.
I checked the file and found the Code Line where it stops:
36 if (!$this->source->checkPolicy('create')) {
37 return $this->failure($this->modx->lexicon('permission_denied'));
38 }
When I comment this line it works for the Editor Group.
Then I assigned the Media Source to the User Group with the Policy Media Source Admin. But it doesn't work either.
Next Problem:
When the Media Source is assigned to a User Group I can't see (edit) it any more in Tools/Media Sources.
Hope you can help me.