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)


19
20
21
22
23
24
25
26
# File 'app/models/bigbluebutton_meeting.rb', line 19

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