Skip to content

Commit

Permalink
Better name
Browse files Browse the repository at this point in the history
  • Loading branch information
nanaya committed Nov 6, 2023
1 parent 867d3bd commit b0b0ce7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Models/Group.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Group extends Model implements AfterCommit
{
// Identifier of groups which involved in permission checks
// and assumed to always exist in database.
const PRIV_GROUPS = [
const PRIV_IDENTIFIERS = [
'admin',
'alumni',
'announce',
Expand Down
2 changes: 1 addition & 1 deletion tests/SeederExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function executeBeforeFirstTest(): void
{
TestCase::withDbAccess(function () {
Group::truncate();
foreach (Group::PRIV_GROUPS as $identifier) {
foreach (Group::PRIV_IDENTIFIERS as $identifier) {
Group::create([
'group_desc' => '',
'group_name' => $identifier,
Expand Down

0 comments on commit b0b0ce7

Please sign in to comment.