Class: BigbluebuttonMeeting

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
ActiveModel::ForbiddenAttributesProtection
Defined in:
app/models/bigbluebutton_meeting.rb

Instance Method Summary collapse

Instance Method Details

#created_by?(user) ⇒ Boolean

Whether the meeting was created by the ‘user` or not.

Returns:

  • (Boolean)


24
25
26
27
28
29
30
31
# File 'app/models/bigbluebutton_meeting.rb', line 24

def created_by?(user)
  unless user.nil?
    userid = user.send(BigbluebuttonRails.configuration.user_attr_id)
    self.creator_id == userid
  else
    false
  end
end