Last active
March 8, 2018 19:32
-
-
Save joanmolinas/4e94f71425effda3b3627a61b06ce5e5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class ContentController { | |
func show() { | |
// Do stuff | |
} | |
} | |
class SubscriptorContentController: ContentController { | |
override func show() { | |
guard user.type == .suscriptor else { return } | |
super.show() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment