Browse Source

s/INUSUFFICENTPRIVLEDGES/INSUFFICIENTPRIVILEGES/g

This typo has been around since forever
templates_refactor
dequis 6 years ago
parent
commit
ea7a9ed3d2
3 changed files with 9 additions and 9 deletions
  1. +2
    -2
      interboard.py
  2. +6
    -6
      staff_interface.py
  3. +1
    -1
      strings.py

+ 2
- 2
interboard.py View File

@@ -90,7 +90,7 @@ def global_cache_rebuild():

def global_cache_rebuild_proxy(task_data):
if task_data.user.account != staff.ADMIN:
raise WakaError(strings.INUSUFFICENTPRIVLEDGES)
raise WakaError(strings.INSUFFICIENTPRIVILEGES)
Popen([sys.executable, sys.argv[0], 'rebuild_global_cache'],
env=util.proxy_environ())
referer = local.environ['HTTP_REFERER']
@@ -474,7 +474,7 @@ def trim_activity():

def update_spam_file(task_data, spam):
if task_data.user.account == staff.MODERATOR:
raise WakaError(strings.INUSUFFICENTPRIVLEDGES)
raise WakaError(strings.INSUFFICIENTPRIVILEGES)

# Dump all contents to first spam file.
with open(config.SPAM_FILES[0], 'w') as f:


+ 6
- 6
staff_interface.py View File

@@ -54,7 +54,7 @@ def admin_only(f):
def ret_func(*args, **kwargs):
self = args[0]
if self.user.account != staff.ADMIN:
raise WakaError(strings.INUSUFFICENTPRIVLEDGES)
raise WakaError(strings.INSUFFICIENTPRIVILEGES)
f(*args, **kwargs)

return ret_func
@@ -65,7 +65,7 @@ def global_only(f):
def ret_func(*args, **kwargs):
self = args[0]
if self.user.account == staff.MODERATOR:
raise WakaError(strings.INUSUFFICENTPRIVLEDGES)
raise WakaError(strings.INSUFFICIENTPRIVILEGES)
f(*args, **kwargs)

return ret_func
@@ -696,7 +696,7 @@ class StaffInterface(Template):
@interface_for(SQL_PANEL)
def make_sql_interface_panel(self, sql='', nuke=''):
if self.user.account != staff.ADMIN:
raise WakaError(strings.INUSUFFICENTPRIVLEDGES)
raise WakaError(strings.INSUFFICIENTPRIVILEGES)

results = []

@@ -773,7 +773,7 @@ def add_staff_proxy(admin, mpass, usertocreate, passtocreate, account, reign):
user = staff.check_password(admin)

if user.account != staff.ADMIN:
raise WakaError(strings.INUSUFFICENTPRIVLEDGES)
raise WakaError(strings.INSUFFICIENTPRIVILEGES)

if account == staff.ADMIN and mpass != config.ADMIN_PASS:
raise WakaError('Incorrect management password.')
@@ -788,7 +788,7 @@ def del_staff_proxy(admin, mpass, username):
user = staff.check_password(admin)

if user.account != staff.ADMIN:
raise WakaError(strings.INUSUFFICENTPRIVLEDGES)
raise WakaError(strings.INSUFFICIENTPRIVILEGES)

user_to_kill = staff.StaffMember.get(username)
if user_to_kill.account == staff.ADMIN and mpass != config.ADMIN_PASS:
@@ -816,7 +816,7 @@ def edit_staff_proxy(admin, mpass, username, newpassword=None, newclass=None,
if edited_user.account == staff.ADMIN and mpass != config.ADMIN_PASS:
raise WakaError('Incorrect management password.')
else:
raise WakaError(strings.INUSUFFICENTPRIVLEDGES)
raise WakaError(strings.INSUFFICIENTPRIVILEGES)

staff.edit_staff(username, clear_pass=newpassword, new_class=newclass,
reign=reign, disable=disable)


+ 1
- 1
strings.py View File

@@ -188,7 +188,7 @@ NEWFILE = "New File" # Prompt for replac
STRINGFIELDMISSING = "Please input string to ban."
MODDELETEONLY = "This was posted by a moderator or admin and cannot be deleted this way."
POSTNOTFOUND = "Post %d not found on %s."
INUSUFFICENTPRIVLEDGES = 'Insufficient privileges'
INSUFFICIENTPRIVILEGES = 'Insufficient privileges'

#
# Oekaki


Loading…
Cancel
Save