from flask.ext.login import current_user


def create(app=None):
    if current_user.is_authenticated():
        if current_user.admin is True:
            return True
        else:
            return False
    else:
        return False


def read(app=None):
    return True


def update(app):
    return create(app)


def delete(app):
    return create(app)

@@ -47,19 +47,24 @@
  create(
-app
+category
 =None):%0A
@@ -247,19 +247,24 @@
 ef read(
-app
+category
 =None):%0A
@@ -292,19 +292,24 @@
  update(
-app
+category
 ):%0A    r
@@ -321,19 +321,24 @@
  create(
-app
+category
 )%0A%0A%0Adef 
@@ -344,19 +344,24 @@
  delete(
-app
+category
 ):%0A    r
@@ -377,9 +377,14 @@
 ate(
-app
+category
 )%0A

Fix a typo in the variable name