Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: organizer can add speaker without email #7376

Merged
merged 3 commits into from
Oct 25, 2020
Merged

fix: organizer can add speaker without email #7376

merged 3 commits into from
Oct 25, 2020

Conversation

maze-runnar
Copy link
Contributor

related : fossasia/open-event-frontend#5359

Checklist

  • I have read the Contribution & Best practices Guide and my PR follows them.
  • My branch is up-to-date with the Upstream development branch.
  • The unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • All the functions created/modified in this PR contain relevant docstrings.

@codecov
Copy link

codecov bot commented Oct 25, 2020

Codecov Report

Merging #7376 into development will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##           development    #7376   +/-   ##
============================================
  Coverage        64.23%   64.23%           
============================================
  Files              259      259           
  Lines            13130    13130           
============================================
  Hits              8434     8434           
  Misses            4696     4696           
Impacted Files Coverage Δ
app/api/speakers.py 68.93% <ø> (ø)
app/api/schema/speakers.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 11d5cd9...19f5250. Read the comment docs.

# and has_access('is_organizer', event_id=data['event'])
# and not data.get('email')
# ):
# data['email'] = current_user.email
Copy link
Member

@iamareebjamal iamareebjamal Oct 25, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We still need to assign the email if the user is organizer and is_email_overridden = False

@maze-runnar maze-runnar changed the title wip: organizer can add speaker without email fix: organizer can add speaker without email Oct 25, 2020
@auto-label auto-label bot added the fix label Oct 25, 2020
@iamareebjamal iamareebjamal merged commit eff7e73 into fossasia:development Oct 25, 2020
@iamareebjamal
Copy link
Member

@maze-runnar One condition is still left. If a non-organizer user sets email to null, it should be denied

@maze-runnar maze-runnar deleted the patch-2 branch December 27, 2020 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants