Commit Graph
3161 Commits
Author SHA1 Message Date
Sunil Mohan Adapa 61c147a9ac openvpn: Upgrade logo license to gplv3+ 2017-02-15 21:08:31 +05:30
Sunil Mohan Adapa 05908d1680 openvpn: Handle shortcut properly when enabling/disabling 2017-02-15 21:08:18 +05:30
Sunil Mohan Adapa 2a3381415e Prioritize stronghold over admin require middlerware
Not logged-in users accessing restricted URLs will be required to
login page instead of being show access denied page.
2017-02-15 21:08:00 +05:30
Rahul De ad0b235dd7 users: Restrict groups and active user control to admins
- Only admins can now edit the groups of any user

- Only admins can mark any user as active or not

- Refactored all occurrences of admin checks to its own utility function
2017-02-15 21:07:54 +05:30
Sunil Mohan Adapa 7465aafe89 openvpn: Fix i18n and minor refactoring
- Remove hard coded link
2017-02-15 21:07:43 +05:30
Sunil Mohan Adapa 3e8caab08a middleware: Refactor tests to avoid repetition 2017-02-15 21:07:35 +05:30
Sunil Mohan Adapa dd5ab7612e Minor refactoring and lint fixes
- Rename AdminMiddleware to AdminRequiredMiddleware to be consistent
  with stronghold/Django terminology

- Simplify .gitignore pattern

- Format single line docstrings as per PEP8.

- Add missing docstrings.

- Restrict lines to 79 characters.
2017-02-15 21:07:27 +05:30
Sunil Mohan Adapa 4699b201a9 Remove use of stronghold whitelisting
This is no longer necessary as both the URLs have been explicitly
marked as public views.
2017-02-15 21:07:19 +05:30
lispyclouds f54a9d89dd Fix accidental debugging print 2017-02-15 21:07:08 +05:30
lispyclouds 0f3189c6bd frontpage: Show config options only to admins 2017-02-15 21:06:20 +05:30
lispyclouds b0321d7d29 openvpn: Allow non-admin users to download their own profiles
- This adds OpenVPN icon

- This enables the OpenVPN app on the index page.

- This allows only admins to create the certs for OpenVPN and admins and
  non admins can not download their own profiles via the app icon.
2017-02-15 21:05:48 +05:30
lispyclouds 40ceb9a152 Deny access to non-admin users to other's pages
- This checks that the user making the request is the same user as the
  one logged in and prevents access to the pages of other users if its
  not admin
2017-02-15 21:05:40 +05:30
lispyclouds da2a63bd96 Add intellij and macos file to gitignore 2017-02-15 21:04:56 +05:30
lispyclouds 79b27ea2ee Make user edit and change password non-admin views
- This makes the user update and password change pages non admin so that
  non admin users can access
2017-02-15 21:04:40 +05:30
lispyclouds 3e0f7a007e Update default page after login
- This fixes the redirect to the index page instead of apps:index post
  login
2017-02-15 20:58:05 +05:30
lispyclouds 3b23f78bdc Implement middleware for admin views
- Add AdminMiddleware to deny non admin users
- Add decorator to mark views as "non admin"
2017-02-15 20:57:52 +05:30
Sripath Roy Koganti c8fb2c35c4 Translated using Weblate (Telugu)
Currently translated at 65.9% (453 of 687 strings)
2017-02-15 15:46:23 +01:00
Sripath Roy Koganti 0e9c86f52c Translated using Weblate (Telugu)
Currently translated at 65.7% (452 of 687 strings)
2017-02-06 18:46:40 +01:00
Sunil Mohan Adapa 7f948d1111 tor: Simplify upstream bridges action code
- There is no need for separate subcommand as arguments can be passed in
  even when they have special characters such as \n in them.

- Enable obfs3 and scramblesuit transports also.  Since it is easy to
  support them and bridges site still provides them.  scramblesuit is
  also a nice alternative to obfs4.

- Minor refactoring/fixes.
2017-01-29 11:21:03 +05:30
Sunil Mohan Adapa e3d0c7ba80 tor: Update upstream bridges javascript actions
- Always show relay and bridge relay options.  This is show to the users
  that the options are available but not enabled because of somethings
  else.  Otherwise, users may not be able to discover these important
  options.

- Simplify animation for upstream bridges text box.
2017-01-29 11:20:46 +05:30
Sunil Mohan Adapa 31cad0bf40 tor: Better validation for upstream bridges
- Convert line terminators in the form field so that it matches the
  current status information resulting in proper detection of change in
  value.

- Allow IPv6 addresses properly.  Allow "[ipv6]:port" format.

- Make specifying port optional.

- Allow spaces at the beginning and ending of the line to compensate for
  copy/paste errors.

- Allow empty lines between bridge specifications.

- Allow multiple spaces between the components.

- Raise error if upstream bridges are not provided when 'use upstream
  bridges' option is enabled.

- Write tests for upstream bridges validator.
2017-01-29 11:20:34 +05:30
Sunil Mohan Adapa c311175797 tor: Update description for bridge options
- Mention that this option is for preventing censorship.

- Simplify description of upstream bridges.

- Give hyperlink to bridges.torproject.org.

- Make it slightly more clear that users can copy paste information from
  bridges page.

- Update list of supported transports.
2017-01-29 11:20:22 +05:30
James Valleroy 4162c2df86 tor: Catch one more possible error with bridge entries 2017-01-29 11:20:03 +05:30
James Valleroy f52f3f70d2 tor: Fix async config and message regressions 2017-01-29 11:19:47 +05:30
James Valleroy 31f95cfb12 tor: Support obfs4 for upstream bridges
Refactor augeas lens for readability.
2017-01-29 11:19:34 +05:30
James Valleroy 4eaff44b49 tor: Hide relay options when upstream bridges are used
Move upstream bridge options above relay options.
2017-01-29 11:19:20 +05:30
James Valleroy 5483d30151 tor: Don't allow relay to be enabled while using upstream bridges 2017-01-29 11:19:01 +05:30
James Valleroy 165e880329 tor: Move restart logic into plinth module 2017-01-29 11:18:42 +05:30
James Valleroy 6430ebbc71 tor: Re-use loaded augeas 2017-01-29 11:18:31 +05:30
James Valleroy 5552853ee3 tor: Validate bridge entries 2017-01-29 11:18:08 +05:30
James Valleroy 09b58a8b99 tor: Add option to use upstream bridges 2017-01-29 11:17:41 +05:30
James Valleroy 413256569d Style changes
Update changelog.
2017-01-26 12:33:32 -05:00
Marko Mackic f6d8a8a4d8 Add shaarli icon to LICENCES 2017-01-26 12:33:29 -05:00
Marko Mackic 6f455d6afc Remove dir_util copy_tree 2017-01-26 12:33:26 -05:00
Marko Mackic bb6e164d2a Add line brake to infinoted title 2017-01-26 12:33:23 -05:00
Marko Mackic 8ba763bf5a Folders overwrite, shaarli.png added to static files 2017-01-26 12:33:04 -05:00
Алексей Докучаев db636ea23c Translated using Weblate (Russian)
Currently translated at 99.8% (686 of 687 strings)
2017-01-25 12:46:07 +01:00
James Valleroy 7679ba277a Release v0.13.1 v0.13.1 2017-01-22 14:45:02 -05:00
James Valleroy 34b691cb7c Fetch latest manual from wiki 2017-01-22 14:22:11 -05:00
Luis A. Arizmendi ffe9799089 Translated using Weblate (Spanish)
Currently translated at 100.0% (687 of 687 strings)
2017-01-22 14:45:15 +01:00
Petter Reinholdtsen 4c0d6fc6ec Translated using Weblate (Norwegian Bokmål)
Currently translated at 100.0% (687 of 687 strings)
2017-01-22 14:45:15 +01:00
pitchum 464b7fa017 Translated using Weblate (French)
Currently translated at 100.0% (687 of 687 strings)
2017-01-22 14:45:15 +01:00
Sunil Mohan Adapa 287cb9798e New locale for Japanese (ja) 2017-01-22 19:13:52 +05:30
pitchum 25b3b3cd70 Translated using Weblate (French)
Currently translated at 100.0% (687 of 687 strings)
2017-01-22 13:47:21 +01:00
znoteer 9a75c88a65 Translated using Weblate (French)
Currently translated at 93.7% (644 of 687 strings)
2017-01-22 12:48:20 +01:00
Allan Nordhøy 54e8985ce7 Translated using Weblate (Norwegian Bokmål)
Currently translated at 100.0% (687 of 687 strings)
2017-01-22 08:40:09 +01:00
Dietmar d6521dbedb Translated using Weblate (French)
Currently translated at 93.7% (644 of 687 strings)
2017-01-22 01:25:03 +01:00
Luis A. Arizmendi 730ac7ab58 Translated using Weblate (Spanish)
Currently translated at 100.0% (687 of 687 strings)
2017-01-21 23:29:28 +01:00
Petter Reinholdtsen bc1010c019 Translated using Weblate (Norwegian Bokmål)
Currently translated at 99.7% (685 of 687 strings)
2017-01-21 21:52:00 +01:00
Manchala Lakshmi 77778a379c Translated using Weblate (Telugu)
Currently translated at 65.7% (452 of 687 strings)
2017-01-20 23:55:08 +01:00