Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
yotta
/
pictogram
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
60
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e2ef3827
authored
Apr 06, 2017
by
Germán Callejas Alcántara
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Policies editadas y funcion para crear path al audio
parent
0b38ca53
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
sails/src/config/pictogram.js
sails/src/config/policies.js
sails/src/config/pictogram.js
View file @
e2ef3827
...
...
@@ -129,7 +129,7 @@ module.exports.pictogram = {
* @param {supervisorId} supervisorId supervisorId
* @return {string} fileName
*/
get
Supervisor
CustomPictoSoundFilename
:
function
(
supervisorId
)
{
getCustomPictoSoundFilename
:
function
(
supervisorId
)
{
return
sails
.
config
.
pictogram
.
paths
.
_getRandomSoundFileName
(
'SUPERVISOR_CUSTOM_PICTO'
,
supervisorId
...
...
sails/src/config/policies.js
View file @
e2ef3827
...
...
@@ -105,7 +105,7 @@ module.exports.policies = {
login
:
true
,
create
:
[
'tokenAuth'
,
'isSupAdmin'
],
upload
:
[
'tokenAuth'
],
upload_sound
:
[
'tokenAuth'
,
'isSupervisorOfStudent'
],
upload_sound
:
[
'tokenAuth'
],
add_picto
:
[
'tokenAuth'
,
'isSupervisorOfStudent'
],
subscribe
:
[
'tokenAuth'
],
unsubscribe
:
true
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment