noyainrain / meetling

Web app for collaboratively preparing meetings.
https://meetling.org/
GNU General Public License v3.0
15 stars 2 forks source link

Authorization #4

Closed noyainrain closed 9 years ago

noyainrain commented 9 years ago

For editing the global settings we need a means of authorization.

Depends on #2 .

noyainrain commented 9 years ago

Draft:

class Settings:
    """
    .. describe:: staff

       Staff users.
    """

    def edit(self, **attrs):
        """
        .. http:post:: /api/settings

           ``{attrs...}``

           Edit the attributes given by *attrs* and return the updated settings.

           Permission: staff user.
        """

class PermissionError(Exception):
    """Returned if the current user is not allowed to perform an action."""
noyainrain commented 9 years ago

Implemented in ff1511e795d432a0504f105874bff5425215a5e6 .