Mercurial > p > roundup > code
comparison doc/customizing.txt @ 5881:9938c40e03bc
Add "rest" and "xmlrpc" values for database tx_Source property
issue2551059: added new values for tx_Source to indicate when /rest
or /xmlrpc endpoint is being used rather than the html web
interface.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sat, 28 Sep 2019 18:28:17 -0400 |
| parents | 39082e29d2b4 |
| children | 6e341009593b |
comparison
equal
deleted
inserted
replaced
| 5880:e9221d8ad3ba | 5881:9938c40e03bc |
|---|---|
| 4921 | 4921 |
| 4922 if 'nosy' not in newvalues: | 4922 if 'nosy' not in newvalues: |
| 4923 # the nosy field has not changed so no need to check. | 4923 # the nosy field has not changed so no need to check. |
| 4924 return | 4924 return |
| 4925 | 4925 |
| 4926 if db.tx_Source in ['web', 'email-sig-openpgp', 'cli' ]: | 4926 if db.tx_Source in ['web', 'rest', 'xmlrpc', 'email-sig-openpgp', 'cli' ]: |
| 4927 # if the source of the transaction is from an authenticated | 4927 # if the source of the transaction is from an authenticated |
| 4928 # source or a privileged process allow the transaction. | 4928 # source or a privileged process allow the transaction. |
| 4929 # Other possible sources: 'email' | 4929 # Other possible sources: 'email' |
| 4930 return | 4930 return |
| 4931 | 4931 |
