website/pkg
Noah Petherbridge 47aaf15078 Admin Groups & Permissions
Add a permission system for admin users so you can lock down specific admins to
a narrower set of features instead of them all having omnipotent powers.

* New page: Admin Dashboard -> Admin Permissions Management
* Permissions are handled in the form of 'scopes' relevant to each feature or
  action on the site. Scopes are assigned to Groups, and in turn, admin user
  accounts are placed in those Groups.
* The Superusers group (scope '*') has wildcard permission to all scopes. The
  permissions dashboard has a create-once action to initialize the Superusers
  for the first admin who clicks on it, and places that admin in the group.

The following are the exhaustive list of permission changes on the site:

* Moderator scopes:
    * Chat room (enter the room with Operator permission)
    * Forums (can edit or delete user posts on the forum)
    * Photo Gallery (can see all private/friends-only photos on the site
      gallery or user profile pages)
* Certification photos (with nuanced sub-action permissions)
    * Approve: has access to the Pending tab to act on incoming pictures
    * List: can paginate thru past approved/rejected photos
    * View: can bring up specific user cert photo from their profile
    * The minimum requirement is Approve or else no cert photo page
      will load for your admin user.
* User Actions (each action individually scoped)
    * Impersonate
    * Ban
    * Delete
    * Promote to admin
* Inner circle whitelist: no longer are admins automatically part of the
  inner circle unless they have a specialized scope attached.

The AdminRequired decorator may also apply scopes on an entire admin route.
The following routes have scopes to limit them:

* Forum Admin (manage forums and their settings)
* Remove from inner circle
2023-08-01 20:39:48 -07:00
..
config Admin Groups & Permissions 2023-08-01 20:39:48 -07:00
controller Admin Groups & Permissions 2023-08-01 20:39:48 -07:00
log Private Profiles & Misc Improvements 2022-08-21 17:29:39 -07:00
mail Rename the module 2022-08-25 21:21:46 -07:00
markdown Forums: Basic Support WIP 2022-08-23 22:55:19 -07:00
middleware Admin Groups & Permissions 2023-08-01 20:39:48 -07:00
models Admin Groups & Permissions 2023-08-01 20:39:48 -07:00
photo Better fix for edit photo exception 2023-07-22 14:53:57 -07:00
ratelimit Contact form antispam 2022-09-26 19:12:24 -07:00
redis RemoteAddr fixes 2022-09-26 19:41:07 -07:00
router Admin Groups & Permissions 2023-08-01 20:39:48 -07:00
session Add Admin Guidelines to dashboard 2022-12-24 23:00:59 -08:00
templates Support GIF videos in your photo gallery 2023-06-25 22:55:07 -07:00
utility Bugfix on geogate 2023-06-24 15:51:53 -07:00
worker Minor quick fixes 2023-07-07 17:31:46 -07:00
version.go Rename the module 2022-08-25 21:21:46 -07:00
webserver.go Rename the module 2022-08-25 21:21:46 -07:00