-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a new role permission for receiving an email on user signup (#5529)
* Add a new role permission for receiving an email on user signup * Fix text email * rubo
- Loading branch information
1 parent
6a76642
commit 265ce2d
Showing
12 changed files
with
152 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!--BigBlueButton open source conferencing system - http://www.bigbluebutton.org/.--> | ||
|
||
<!--Copyright (c) 2022 BigBlueButton Inc. and by respective authors (see below).--> | ||
|
||
<!--This program is free software; you can redistribute it and/or modify it under the--> | ||
<!--terms of the GNU Lesser General Public License as published by the Free Software--> | ||
<!--Foundation; either version 3.0 of the License, or (at your option) any later--> | ||
<!--version.--> | ||
|
||
<!--Greenlight is distributed in the hope that it will be useful, but WITHOUT ANY--> | ||
<!--WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A--> | ||
<!--PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.--> | ||
|
||
<!--You should have received a copy of the GNU Lesser General Public License along--> | ||
<!--with Greenlight; if not, see <http://www.gnu.org/licenses/>.--> | ||
|
||
<div style="padding-left: 80px; padding-right: 80px;"> | ||
<p style="font-size: 40px; margin-bottom: 20px; font-weight: 600;"><%= t('email.new_user_signup.new_user') %></p> | ||
|
||
<p style="font-size: 24px;"><%= t('email.new_user_signup.new_user_description') %></p> | ||
|
||
<p style="font-size: 20px;"><%= t('email.new_user_signup.name', name: @user.name) %></p> | ||
<p style="font-size: 20px;"><%= t('email.new_user_signup.email', email: @user.email) %></p> | ||
|
||
<p style="font-size: 24px;"><%= t('email.new_user_signup.take_action') %></p> | ||
|
||
<a href="<%= @signup_url %>" target="_blank" style="background-color: <%= @brand_color %>; border-radius: 8px; border: none; color: white; padding: 15px 32px; text-align: center; text-decoration: none; display: inline-block; font-size: 16px; font-weight: 600; margin-top: 16px; margin-bottom: 64px;"> | ||
<%= t('email.new_user_signup.admin_panel') %> | ||
</a> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<%# | ||
BigBlueButton open source conferencing system - http://www.bigbluebutton.org/. | ||
Copyright (c) 2022 BigBlueButton Inc. and by respective authors (see below). | ||
This program is free software; you can redistribute it and/or modify it under the | ||
terms of the GNU Lesser General Public License as published by the Free Software | ||
Foundation; either version 3.0 of the License, or (at your option) any later | ||
version. | ||
Greenlight is distributed in the hope that it will be useful, but WITHOUT ANY | ||
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public License along | ||
with Greenlight; if not, see http://www.gnu.org/licenses/. | ||
%> | ||
|
||
--- | ||
<%= t('email.new_user_signup.new_user') %> | ||
<%= t('email.new_user_signup.new_user_description' %> | ||
<%= t('email.new_user_signup.name', name: @user.name) %> | ||
<%= t('email.new_user_signup.email', email: @user.email) %> | ||
<%= t('email.new_user_signup.take_action') %> | ||
<%= @signup_url %> | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# BigBlueButton open source conferencing system - http://www.bigbluebutton.org/. | ||
# | ||
# Copyright (c) 2022 BigBlueButton Inc. and by respective authors (see below). | ||
# | ||
# This program is free software; you can redistribute it and/or modify it under the | ||
# terms of the GNU Lesser General Public License as published by the Free Software | ||
# Foundation; either version 3.0 of the License, or (at your option) any later | ||
# version. | ||
# | ||
# Greenlight is distributed in the hope that it will be useful, but WITHOUT ANY | ||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
# PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU Lesser General Public License along | ||
# with Greenlight; if not, see <http://www.gnu.org/licenses/>. | ||
|
||
# frozen_string_literal: true | ||
|
||
class AddEmailOnSignUpPermission < ActiveRecord::Migration[7.1] | ||
def up | ||
email_permission = Permission.create!(name: 'EmailOnSignup') | ||
admin = Role.find_by(name: 'Administrator') | ||
|
||
values = [{ role: admin, permission: email_permission, value: 'true' }] | ||
|
||
Role.where.not(name: 'Administrator').each do |role| | ||
values.push({ role:, permission: email_permission, value: 'false' }) | ||
end | ||
|
||
RolePermission.create! values | ||
end | ||
|
||
def down | ||
raise ActiveRecord::IrreversibleMigration | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
DataMigrate::Data.define(version: 20231030185844) | ||
DataMigrate::Data.define(version: 20231117151542) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters