• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

source-academy / stories-backend / 5665603373
47%

Build:
DEFAULT BRANCH: main
Ran 26 Jul 2023 06:52AM UTC
Jobs 1
Files 14
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 Jul 2023 06:51AM UTC coverage: 52.058% (-0.8%) from 52.826%
5665603373

push

github

web-flow
Setup basic access control (#64)

* Create basic permissions structs and package

* Create users' permission types

* Create users' permission struct

* Add users' group role to permissions mapper

Some logic depends on user role enums and are thus commented out.

* Add top-level permissions checker

* Refactor role permissions logic

* Handle checking of user authorization from within the role permission
  struct
* Create utility function to return the correct authorization level from
  a specified permission

* Implement CheckPermissions function

* Create users' group role enum

Adapted from the users' login provider enum.

* Integrate Role enum to role permissions check

* Replace TODO with FIXME

Done due to the severity of the lack of implementation (breaks entire
access control framework).

6 of 6 new or added lines in 1 file covered. (100.0%)

215 of 413 relevant lines covered (52.06%)

0.56 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
6
0.0
internal/auth/permission.go
Jobs
ID Job ID Ran Files Coverage
1 5665603373.1 26 Jul 2023 06:52AM UTC 14
52.06
GitHub Action Run
Source Files on build 5665603373
  • Tree
  • List 14
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #5665603373
  • 1ab3086c on github
  • Prev Build on main (#5664238932)
  • Next Build on main (#5667299986)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc