Skip to content

SyntaxError in FilesController#new #56

@AnirudhaAgashe

Description

@AnirudhaAgashe

I am getting

syntax error, unexpected keyword_end, expecting end-of-input

for line

if current_user.can_read @folder || current_user.can_write @folder

I was able to get it to work by changing it to

if current_user.can_read(@folder) || current_user.can_write(@folder)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions