Añadidos ACLs del servicio client

This commit is contained in:
Dani Herrero 2017-05-30 14:17:01 +02:00
parent 87c38a0d89
commit 74a0eedb47
10 changed files with 63 additions and 30 deletions

View File

@ -3,7 +3,7 @@
<h6 vn-one translate="Modules access"></h6>
</vn-horizontal>
<vn-horizontal vn-one>
<vn-module ng-repeat="mod in $ctrl.modules" ui-sref="{{::mod.route.state}}" class="{{::mod.name}} mdl-shadow--4dp">
<a ng-repeat="mod in $ctrl.modules" ui-sref="{{::mod.route.state}}" class="{{::mod.name}} vn-module mdl-shadow--4dp">
<vn-vertical>
<vn-one>
<h4 translate="{{::mod.name}}"></h4>
@ -12,6 +12,6 @@
<vn-icon icon="{{::mod.icon}}"></vn-icon>
</vn-one>
</vn-vertical>
</vn-module>
</a>
</vn-horizontal>
</vn-vertical>

View File

@ -7,13 +7,15 @@ vn-home {
color: #3C393B;
text-align: center;
}
vn-module{
a:link{
text-decoration: none;
}
.vn-module{
display: flex;
flex: none;
padding: 2em;
border-radius: 4px;
box-sizing: border-box;
cursor: pointer;
transition: opacity 0.7s ease;
h4{
text-transform: capitalize;
@ -26,13 +28,14 @@ vn-home {
font-size: 50px !important;
margin: 0 auto;
}
&:hover{
opacity: 0.7;
}
&.Clients{
background-color: #ffa410;
color: #ffffff;
}
&:hover{
opacity: 0.8;
}
}
}

View File

@ -64,14 +64,14 @@
{
"accessType": "*",
"principalType": "ROLE",
"principalId": "$authenticated",
"permission": "ALLOW"
"principalId": "$everyone",
"permission": "DENY"
},
{
"accessType": "*",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "DENY"
"principalId": "root",
"permission": "ALLOW"
}
]
}

View File

@ -144,14 +144,14 @@
{
"accessType": "*",
"principalType": "ROLE",
"principalId": "$authenticated",
"permission": "ALLOW"
"principalId": "$everyone",
"permission": "DENY"
},
{
"accessType": "*",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "DENY"
"principalId": "root",
"permission": "ALLOW"
}
],
"validations": [],

View File

@ -37,14 +37,14 @@
{
"accessType": "*",
"principalType": "ROLE",
"principalId": "$authenticated",
"permission": "ALLOW"
"principalId": "$everyone",
"permission": "DENY"
},
{
"accessType": "*",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "DENY"
"principalId": "root",
"permission": "ALLOW"
}
],
"scope": {

View File

@ -33,10 +33,22 @@
},
"acls": [
{
"accessType": "*",
"accessType": "READ",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW"
},
{
"accessType": "WRITE",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "DENY"
},
{
"accessType": "*",
"principalType": "ROLE",
"principalId": "root",
"permission": "ALLOW"
}
]
}

View File

@ -28,14 +28,14 @@
{
"accessType": "*",
"principalType": "ROLE",
"principalId": "$authenticated",
"permission": "ALLOW"
"principalId": "$everyone",
"permission": "DENY"
},
{
"accessType": "*",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "DENY"
"principalId": "root",
"permission": "ALLOW"
}
]
}

View File

@ -27,6 +27,12 @@
"accessType": "*",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "DENY"
},
{
"accessType": "*",
"principalType": "ROLE",
"principalId": "root",
"permission": "ALLOW"
}
]

View File

@ -32,10 +32,22 @@
},
"acls": [
{
"accessType": "*",
"accessType": "READ",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "ALLOW"
},
{
"accessType": "WRITE",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "DENY"
},
{
"accessType": "*",
"principalType": "ROLE",
"principalId": "root",
"permission": "ALLOW"
}
]
}

View File

@ -8,8 +8,8 @@
"port": 465,
"secure": true,
"auth": {
"user": "",
"pass": ""
"user": "nocontestar",
"pass": "ub606cux7op"
},
"tls":{
"rejectUnauthorized": false
@ -20,8 +20,8 @@
"mysql": {
"host": "test-db.verdnatura.es",
"port": 3307,
"user": "",
"password": "",
"user": "reports",
"password": "78ZZv9xsjwRi1j2T",
"database": "vn2008"
}
}