Skip to content

Commit 9073da9

Browse files
author
Tom Copeland
committed
If a user is an admin, he has released permissions also. I _think_ this is always valid... should really check roles, though.
1 parent 4a53562 commit 9073da9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/user_group.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class UserGroup < ActiveRecord::Base
2828
belongs_to :group
2929

3030
def has_release_permissions?
31-
release_flags == 1
31+
release_flags == 1 || admin_flags.strip == 'A'
3232
end
3333

3434
def grant_release_permissions!

0 commit comments

Comments
 (0)