# system.kanoa.security.updateRoleFunctions(roleFunctionInfo, userId)

Updates a role function link

---
### Parameters
**roleFunctionInfo** `Dictionary`<br />
<table class='dictionaryKeyTable'>
	<tbody>
 	<tr><td> - enabled</td><td>Boolean</td><td></td></tr>	
 	<tr><td> - functionId</td><td>Integer</td><td></td></tr>	
 	<tr><td> - roleId</td><td>Integer</td><td></td></tr>	
	</tbody>
</table>

**userId** `Integer`: Id of user executing the function<br />

---
### Returns
**retVal** `Integer` # of records modified<br />
**msg** `String` None if success<br />

---
### Example
```python
system.kanoa.security.updateRoleFunctions({'roleId': 1, 'functionId': 7, 'enabled': True}, 123)
```
